N = int(input().strip()) print(''.join([''.join([str(i + 1) for i in range(N)]) for j in range(N)])[::-1])