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