import Control.Applicative
import Text.Printf
main = do xys <- map read . words <$> getLine
          printf "%.5g\n" $ solve xys

solve :: [Double] -> Double
solve (x1:y1:x2:y2:_) = sqrt $ (x1-x2) ** 2 + (y1-y2) ** 2