K = input()
n = int(K)
Sn = 0
for k in K:
    Sn += int(k)

npSn = n / Sn

cnt = 0
while True:
    for i in range(1,10):
        print(i, end="")
        print("9"*(cnt//9))
        cnt += 1
        if cnt >= n:
            exit()