n = int(input())
ans= ""
for _ in range(n):
    for i in range(1,n+1):
        ans += str(i)

print(ans)