def sumdigit(n):
    sum = 0
    for char in str(n):
      sum += int(char)
    return sum

def frac(n):
    return float(n)/sumdigit(n)


if __name__ == "__main__":
    K = int(input())
    ans = [1,2,3,4,5,6,7,8]
    num = 9
    while(len(ans)<K):
        if str(num)[-1]=="9":
            if str(num)[1:].count("9")==len(str(num)[1:]):
                ans.append(num)
        num += 1

    for i in range(K):
        print(ans[i])