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