# -*- coding: utf-8 -*-
"""
Created on Sat Jun 23 22:26:22 2018

@author: maezawa
"""

k = int(input())

i = 1
s = []
j = 1
while i < k+1:
    if i<10:
        s.append(str(i))
        print(i)
        i += 1
        j = (j+1)%9
    else:
        s[j] = s[j] + '9'
        print(s[j])
        i += 1
        j = (j+1)%9
    