N = int(input())

ans = ''
for i in range(1, N+1):
    j = str(i%10)
    ans += j * N
print(ans)