p1,p2 = map(int, input().split()) q1,q2 = map(int, input().split()) d = abs(p1-q1)+abs(p2-q2) t = d/2 print(t)