
import math
def sn(i):
    tmp = i % 10
    sn = tmp
    tmp1 = math.floor(i/10)
    while tmp1 > 0:
        tmp = tmp1 % 10
        sn += tmp
        tmp1 = math.floor(tmp1/10)
    return sn

def hantei(i):

    while i > 9:
        tmp = i % 10
        if tmp != 9:
            return False
        i = math.floor(i/10)
    return True

k = int(input())
i = 0
cnt = 1
while i != k:
    if math.floor(cnt / 10) == 0:
        print(cnt)
        i += 1
    elif hantei(cnt):
        print(cnt)
        i += 1
    cnt += 1
