n = int(input()) if n == 1: ans = 1 else: ans = int("".join([str(i) * n for i in range(n-1, -1, -1)])) print(ans)