for(;[x,y]=readline().split(" ");)print(Math.sqrt(x*x+y*y).toFixed(2))