N = input() Count = int(N) str = "" for i in range(int(N)): for j in range(Count): str += N print(str) str = "" Count -= 1