Qx,Qy = map(lambda x: int(x), input().split()) Px,Py = map(lambda x: int(x), input().split()) distance = (abs(Qx - Px) + abs(Qy - Py))/2 print(distance)