program Pithagoras;
var a,b,c:real;
begin
   readln(a);
   readln(b);
   c:=sqrt(a*a+b*b);
   writeln(c:3:5);
end.
