a,b,c,d,e,f=map(int,input().split()) print(((f-e+c*c/a/4+d*d/b/4)/a)**.5)