for(;[a,b,c]=readline().split(' '),a;print(Math.sqrt(4*a*a*c*c-d*d)+2>>2))d=c*c+a*a-b*b