K = int(input())
counter = 0
nine_num = 0
while counter < K:
    for i in range(1, 10):
        print(str(i)+"9"*nine_num)
        counter += 1
        if counter >= K:
            break
    nine_num += 1
    