def s(n):
    return sum(map(int, str(n)))

sunukes = [2, 3, 4, 5, 6, 7, 8, 9]
k = int(input())

i = 10
while True:
    for j in range(1, 10):
        sunukes.append(j * i)
    if len(sunukes) >= k:
        break        
    i *= 10

for n in sunukes[:k]:
    print(n - 1)