n = int(input()) ans = [] if n==1: print(1) exit() for i in range(n-1,-1,-1): for j in range(n): ans.append(i) print(*ans,sep="")