import           Control.Applicative
import           Control.Monad
import           Data.List

main :: IO ()
main = do
  [x1,y1,x2,y2] <- map (read::String->Double) . words <$> getLine
  print $ sqrt ((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2))

