https://www.acmicpc.net/problem/4673
def d(n):
num=n
while n>0:
num+=n%10
n=int(n/10)
return num
i=1
while i<=10000:
count=0
j=1
while j<=10000:
if i==d(j):
count=0
break
else:
count=1
j+=1
if count==1:
print(i)
i+=1