a=int(input())b=input()print((b+" ") *a)for i in range(a): print(b + " " * a + b)print((b+" ") *a)
3 *
* * * * * * * * * * * *
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!