var a,b,max,min:integer;
begin
read(a,b);
if (a>b) then max:=a; else max:=b;
if (a<b) then min:=a; else min:=a;
write(max*2);
write(min/2);
end.
var a,b,max,min:integer;
begin
read(a,b);
if (a>b) then max:=a; else max:=b;
if (a<b) then min:=a; else min:=a;
write(max*2);
write(min/2);
end.