K = int(input())
count = 1
while 1:
    keta = count // 9
    up = count % 9
    st = []
    if up != 0:
        st = [str(up)]
    for i in range(keta):
        st.append('9')
    print(''.join(st))
    count += 1
    if count == K+1:
        break
