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