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