-- Math Functions - Distance

import Control.Applicative
import Text.Printf

main :: IO ()
main = do
  [x1, y1, x2, y2] <- map read . words <$> getLine
  let d = sqrt ((x1 - x2)^2 + (y1 - y2)^2) :: Double
  printf "%f\n" d

