def solve(): a, b, c, d, e, f = map(int, input().split()) ans = (f - e + (c * c + d * d) / a / 4) / a return ans ** 0.5 print(solve())