#yuki1178 a,b,c,d,e,f=map(int,input().split()) res=(c**2)/(2*a)**2-e/a +(d**2)/(2*b)**2+f/b print(pow(res,0.5))