Px,Py = map(int,input().split()) Qx,Qy = map(int,input().split()) dist = abs(Px-Qx)+abs(Px-Qx) print(dist/2)