MAX = 10**15+1

def top(num):
    ans = 0
    while num//10 != 0:
        ans += num%10
        num = num//10
    return num


def tail(num):
    sho = num//10
    return num-10*sho

def get_snuke():
        for i in range(1,MAX):
            if i <= 10:
                yield i
            elif  tail(i) == 9:
                if top(i) != top(i+10):
                    yield i
    

def main():
    K = int(input())
    gen = get_snuke()

    
    for _ in range(K):
        snuke_num = gen.__next__()
        print(snuke_num)

if __name__ == "__main__":
    main()