import Control.Monad
import Control.Applicative
import Data.Functor
import Data.List
import Data.Char

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