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