a=range(3025) for x in a*1: a[x+sum(map(int,`x`))]=0 if a[x]:print x