nums = list("1234567890") N = int(input()) ans = "" for i in range(N): ans += nums[i] * N print(ans)