# ===================================
# (c) MidAndFeed aka ASilentVoice
# ===================================
# import math 
# import collections
# import string
# ===================================
def s(n):
	ans = 0
	for x in str(n):
		ans += int(x)
	return ans

k = int(input())
# for i in range(1, k+1):
# 	print(i, s(i), i/s(i))
it = 0
i = 19
while it < k:
	# i = it+1
	# print(i, s(i), i/s(i))
	if it+1 < 10:
		print(it+1)
	else:
		print(i, s(i), i/s(i))
		i += 10
	if i > 99:
		break
	it += 1

