from math import sqrt a,b,c,d,e,f=map(int,input().split()) A=(b*c*c+a*d*d-4*a*b*(e-f)) B=4*a*b print(sqrt(A/B))