N = int(input()) for i in range(N): for j in range(N-i): if j == N-i-1: print(N) else: print(N,end='')