This page is still under construction.

Parts of this page are still being built. What you see may change.

Icon Scaling

Time limit2sMemory limit512 MB

Summary
Read scaling factor k and print the fixed 3x3 icon with every character expanded into a k-by-k block.
Level

Easy2 of 10

Topics
String, Implementation
Solved
No attempts yet

Problem

You want to take a small icon shown on a smartphone screen and scale it up so that it looks bigger on a regular computer screen.

The icon is given as a 3 × 3 grid of the characters x and *, as follows:

*x*
 xx
* *

Write a program that reads a positive integer scaling factor and outputs the scaled icon. A scaling factor of kk means that each character is replaced by a k×kk \times k grid filled only with that character.

Input

The input is a single positive integer kk with k<25k < 25.

Output

The output consists of 3k3k lines. Each line is one line of the original icon scaled by a factor of kk, and it is repeated kk times. Scaling a line by a factor of kk means replacing each character in that line with kk copies of the character.

Examples1

  1. Example 1

    Input
    3
    
    Expected output
    ***xxx***
    ***xxx***
    ***xxx***
       xxxxxx
       xxxxxx
       xxxxxx
    ***   ***
    ***   ***
    ***   ***