# ===================================
# (c) MidAndFeed aka ASilentVoice
# ===================================
# import math 
# import collections
# import string
# ===================================
n = int(input())
s = [9]
for i in range(1, n+1):
	if i < 10:
		print(i)
	else:
		if s[0] == 9:
			s = [1] + s
		else:
			s[0] = s[0] + 1
		print("".join(map(str, s)))