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