N = input() ans = '' for i in range(int(N)): ans += str((int(N) + i) % 10) * int(N) print(int(ans))