x,y = map(int,input().split()) a,b = map(int,input().split()) ans = abs(x-a) + abs(y-b) print(ans / 2)