p = raw_input().split() q = raw_input().split() p = map(int,p) q = map(int,q) dist_x = abs(p[0] - q[0]) dist_y = abs(p[1] - q[1]) ans = 1.0*dist_x/2 + 1.0*dist_y/2 print ans