Px, Py = [int(i) for i in input().split()] Qx, Qy = [int(i) for i in input().split()] print((abs(Px-Qx) + abs(Py-Qy))/2)