p_x,p_y=map(int,input().split()) q_x,q_y=map(int,input().split()) p_s = abs(p_x-q_x) q_s = abs(p_y-q_y) print((p_s+q_s)/2)