N = int(input()) S = N for i in range(N): print(str(S) * N) N -= 1