def d(n):
num_line = str(n)
rlt = 0
rlt += n
for i in num_line:
rlt += int(i)
return rlt
max_num = 10001
nums = list(map(lambda a: a, range(1,max_num)))
for i in range(1,max_num):
self_num = d(i)
try:
nums.remove(self_num)
except ValueError:
pass
for i in nums:
print(i)