a,b,c,d,e,f = map(int,input().split()) r2 = c*c/(4*a)+d*d/(4*b)-e+f ans = r2**0.5 print('{0:.7f}'.format(ans))