def fn(x):
    denom = 0
    for c in str(x):
        denom += int(c)
    return float(x)/denom

k = int(input())
digit = 0
suf = 1
ans = 0
while ans<k:
    sn1 = (suf+1) * 10 ** digit  -1
    sn2 = (suf+2) * 10 ** digit - 1
    if fn(sn1) <= fn(sn2):
        suf += 1
        ans+=1
        print(sn1)
    else:
        digit = len(str(sn1))-1
        suf = 1