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