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