a,b,c,d,e,f=map(int,input().split()) p=4*a*(f-e)+(c**2+d**2) q=4*a**2 print((p/q)**.5)