#include <iostream>
#include <math.h>
#include <fstream>
using namespace std;
int main()
{
fstream file;
file.open("Reader.txt", ios::out | ios::trunc);
int a,b,c,d,e,f,g,h,i;
for( int x=1;x<=993000000;x++){
a=x/100000000;
b=(x%100000000)/10000000;
c=(x%10000000)/1000000;
d=(x%1000000)/100000;
e=(x%100000)/10000;
f=(x%10000)/1000;
g=(x%1000)/100;
h=(x%100)/10;
i=(x%10)/1;
if((((a+b)+(c+d))+(((e+f)+(g+h))+i))==20)file<<x<<endl;
}
file.close();
return 0;
}