
def funuke(now):
    count = 0
    for ele in list(str(now)):
        count += int(ele)
    return now / count

def main():
    num = int(input())

    keta = 1
    now = 1
    count = 0

    while count < num:
        if funuke(now) <= funuke(now + keta):
            count += 1
            print(now)
            now += keta
        else:
            now += 9 * keta
            keta *= 10

if __name__ == '__main__':
    main()