program xxor; {$APPTYPE CONSOLE} uses SysUtils; var i,a,b,x:int64; begin readln(a,b); i:=0; p:=false; while not(p)and(i<=a dov 2) do begin if x xor (a-x)= b then p:=true; writeln(x,' ',a-x); end; end.