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