N=int(input()) i=N while i>0: for j in range(i-1): print(N,end='') print(N) i=i-1