main = getContents >>= print . solve . map (read :: String -> Int ) . words solve (px:py:qx:qy:_) = fromIntegral (abs(px - qx) + abs(py - qy)) / 2.0