function h (a,b:real):real;
begin
h:=(a/1+sqr(a))+(b/1+sqr(a))-((a-b)*sqr(a-b));
end;
var x,y,k:real;
begin
read(x,y);
write(h(x,y)+ sqr(h) *(x-y), x*y);
end.
function h (a,b:real):real;
begin
result:=(a/1+sqr(a))+(b/1+sqr(a))-((a-b)*sqr(a-b));
end;