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