a,b,c,d,e,f=map(int,input().split()) ax=a**0.5 an=c/(2*ax) e-=an**2 bx=b**0.5 bn=d/(2*bx) e-=bn**2 f-=e print(f**0.5)