#meeting PX,PY=(float(i) for i in input().split()) QX,QY=(float(i) for i in input().split()) PX-=QX PY-=QY if PX*PY<0: PY*=-1 PX+=PY if PX<0: PX*=-1 print (PX/2)