program p1;var kat1,kat2,gip,s:real; cod,i,z:integer; st,st1,st2:string;begin readln(st); for i:=1 to length(st) do if st[i]=' ' then z:=i; st1:=copy(st,1,z-1); st2:=copy(st,z+1,length(st)-z); val(st1,kat1,cod); val(st2,kat2,cod); writeln(kat1,' ',kat2); gip:=sqrt(sqr(kat1)+sqr(kat2)); s:=kat1*kat2/2; writeln(gip,' ',s);end.