https://www.acmicpc.net/problem/10995
n = int(input()) for i in range(n): print("* " * n) if i % 2 == 0 else print(" *" * n)