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