from decimal import Decimal a = Decimal(input()) b = Decimal(input()) c = Decimal(input()) d = Decimal(input()) e = Decimal(input()) f = Decimal(input()) f = f - e f = f + (c * c + d * d) / a / 4 print(sqrt(f/a))