K = int(input())

def sunuke(N):
    res = 0
    for n in str(N):
        res += int(n)
    return res



i, n = 0, 0
while i < K:
    n += 1
    
    if n / sunuke(n) <= ((n+1)/ sunuke(n+1)):
        check = 0
        for add in range(1, 11):
            if n / sunuke(n) <= ((n+add)/ sunuke(n+add)):
                check += 1
            if check == 11:
                print(n)
                i += 1
        
