Program pag41_40;
var a,b,c:byte;
begin
writeln;
 for a:=1 to 9 do for b:=0 to 9 do for c:=0 to 9 do
 if c*(c+1)+(10-b-10*a)*(10*a+b)=0 then write(a:2,b,c);
 readln
end.