# -*- coding: utf-8 -*-
import math 
# 整数の入力
k = int(input())

for n in range(1,k+1):
    if (n % 9) == 0:
        print ("9" * math.floor(n/9))
    else:
        print(str((n % 9)) + "9" * math.floor(n/9))