Under construction

Still being built. Things may change

Printing GIST

Time limit1sMemory limit1024 MB

Summary
Given K, print the 3x4 GIST picture with each cell enlarged into a K by K block.
Level

Easy1 of 10

Topics
Implementation, Simulation
Solved
No attempts yet

Problem

GIST student ambassador Jionnarae is preparing a large banner to promote GIST. The banner will include the following picture.

G...
.I.T
..S.

Given an integer KK, print the picture enlarged KK times.

Enlarging the picture KK times means treating the picture as a matrix and enlarging that matrix. The details are as follows. A picture with width MM and height NN is represented as an N×MN \times M matrix X=(xij)X = (x_{ij}). The matrix YY obtained by enlarging XX KK times is a KN×KMKN \times KM matrix defined as follows.

Y=(yij),yij=x⌊i+K−1K⌋⌊j+K−1K⌋Y = (y_{ij}), \quad y_{ij} = x_{\left\lfloor\frac{i + K - 1}{K}\right\rfloor\left\lfloor\frac{j + K - 1}{K}\right\rfloor}

Input

The first line contains an integer KK. (1≤K≤1001 \leq K \leq 100)

Output

Print the picture enlarged KK times.

Examples2

  1. Example 1

    Input
    1
    
    Expected output
    G...
    .I.T
    ..S.
    
  2. Example 2

    Input
    5
    
    Expected output
    GGGGG...............
    GGGGG...............
    GGGGG...............
    GGGGG...............
    GGGGG...............
    .....IIIII.....TTTTT
    .....IIIII.....TTTTT
    .....IIIII.....TTTTT
    .....IIIII.....TTTTT
    .....IIIII.....TTTTT
    ..........SSSSS.....
    ..........SSSSS.....
    ..........SSSSS.....
    ..........SSSSS.....
    ..........SSSSS.....