from decimal import Decimal def main(): a,b,c,d,e,f = map(int,input().split()) child = 4*(a*f-a*e) + c*c + d*d mother = 4*a*a tmp = child/mother ans = Decimal(tmp)**Decimal(0.5) return ans print(main())