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