#!/usr/bin/env python
# coding: utf-8

def ri():
    return int(input())

def rl():
    return list(input().split())

def rli():
    return list(map(int, input().split()))

def main():
    k = ri()
    cand = list(range(1, 10))
    for n in range(1, 15):
        for d in range(1, 10):
            cand.append(d*pow(10,n)+(pow(10,n)-1))
    print("\n".join(map(str, cand[:k])))


if __name__ == '__main__':
    main()
