x, y = map(int, input().split()) X, Y = map(int, input().split()) print((abs(x-X)+abs(y-Y))/2)