#import sys #n = int(sys.argv[1]) n = int(input()) def print_checkerboard(n): for i in range(n): for j in range(n+n): # Print '*' if the sum of the row and column indices is even, else print a space if (i + j) % 2 == 0: print('*', end='') else: print(' ', end='') print() # Move to the next line after printing each row print_checkerboard(n)