#GYM104763A. Jellyfish Art

Jellyfish Art

本题没有可用的提交语言。

Description

The renowned jellyfish artist, Jellyfishy McTentacly, specializes in creating mesmerizing jellyfish patterns! Jellyfishy's latest masterpiece is a jellyfish-shaped text pattern. The jellyfish consists of a body and tentacles, represented by characters 'J' and 'S' respectively. Your task is to recreate Jellyfishy McTentacly's artwork.

You are given a single integer, $N (1 \leq N \leq 100)$, which represents the number of tentacles on Jellyfishy's creation.

Specifically, the jellyfish body is a $2N - 1$ wide, $N$ tall box of 'J' characters. Each of the $N$ tentacles is below the body, consisting of a $1$-wide, $N$ tall sequence of 'S' characters. Each tentacle is spaced from its adjacent tentacles by a single space (see examples for clarification).

Jellyfishy McTentacly's art is truly one-of-a-kind, and you have the privilege of replicating it. Can you create a program that takes an integer $N$ as input and outputs the jellyfish-shaped text pattern that captures the essence of this artistic masterpiece?

A single integer, $N (1 \leq N \leq 100)$, representing the number of tentacles.

$2N$ lines, where the first $N$ consist of the body, and the second $N$ lines are the tentacles.

Input

A single integer, $N (1 \leq N \leq 100)$, representing the number of tentacles.

Output

$2N$ lines, where the first $N$ consist of the body, and the second $N$ lines are the tentacles.

3
6
JJJJJ
JJJJJ
JJJJJ
S S S
S S S
S S S
JJJJJJJJJJJ
JJJJJJJJJJJ
JJJJJJJJJJJ
JJJJJJJJJJJ
JJJJJJJJJJJ
JJJJJJJJJJJ
S S S S S S
S S S S S S
S S S S S S
S S S S S S
S S S S S S
S S S S S S