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