N = int(input()) if N == 1: print(1) exit() ans = "" for i in range(N-1,-1,-1): ans += str(i)*N print(ans)