N = int(input()) print(''.join(str(n) * N for n in range(N-1, -1, -1)))