var i,j:word;begin repeat read(i,j);j:=trunc(i/2-sqrt(i*i/4-j));writeln(j,^`,i-j)until-0>0end.