enum M{M;int i,j,k,n=113968;{for(;i++<8e5;j=0){for(k=i%n;k>0;k/=10)j+=~-k%10+1;if(i/n==j)System.out.println(i%n);}}}