def Main(): n=int(input()) if n==1: print(1) return for i in range(n-1,-1,-1): for j in range(n): print(i,end="") print() Main()