p_list = list(map(int,input().split())) q_list = list(map(int,input().split())) px, py = p_list qx, qy = q_list res = (abs(px - qx) + abs(py - qy)) / 2 print(res)