def Sunuke(n):
    x = n % 9
    y = (n-x)/9
    if n <= 27:
        ans = (10**y)*(x+1) - 1
    else:
        if x == 0:
            ans = 999 + 1000*(y-3)
        else:
            ans = 99 + 100*x + 1000*(y-2)
    return ans

K = int(input())
for i in range(K):
    print(int(Sunuke(i+1)))