p=map(float,input().split()) q=map(float,input().split()) p_s = abs(p[0]-q[0]) q_s = abs(p[1]-q[1]) print((p_s+q_s)/2)