# -*- coding: utf-8 -*-

k = int(input())

ans = [1, 2, 3, 4, 5, 6, 7, 8, 9]
n = '9'

while int(n) <= 10**17:
    for i in range(1, 10):
        ans.append(int(str(i) + n))
    n += '9'

for i in range(k):
    print(ans[i])
