import Data.List
import Data.Char
import Text.Printf

main = interact $ show . solve . read'
  where
    solve [p1x, p1y, p2x, p2y] = sqrt $ (p2x - p1x) ** 2 + (p2y - p1y) ** 2
    read' = map read . words :: String -> [Double]

