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