K = input()
h = int(K)
i = 0

def all_nine(i):
    if i < 10: return True
    x = str(i)[1:]
    #print(x)
    for y in x:
        if y != '9':
            return False
    # 二文字目以降すべて9
    return True

while h > 0:
    i += 1
    s = 0
    for j in str(i):
        s += int(j)
    #print(i, i/s)
    if all_nine(i):
        print(i)
        h -= 1