object Main {
    def main(args: Array[String]) = {
        val in = io.StdIn.readLine.split(" ").map(_.toDouble)
        println(math.sqrt(math.pow(in(0)-in(2), 2) + math.pow(in(1)-in(3), 2)))
    }
}