#include <bits/stdc++.h>
#define debug freopen("in.txt","r",stdin);freopen("out.txt","w",stdout)
using namespace std;
void work()
{
for(int i=123;i<=333;i++)
{
int j=i2,k=i3;
int a=i/100;
int b=i%100/10;
int c=i%10;
int d=j/100;
int e=j%100/10;
int f=j%10;
int g=k/100;
int h=k%100/10;
int l=k%10;
if(abcdefghl123456789&&a+b+c+d+e+f+g+h+l45)
cout<<i<<" "<<j<<" "<<k<<'\n';
}
}
int main()
{
//debug;
work();
return 0;
}