function main(input){
    let nums = input.split(" ").map(item=>parseFloat(item));
    let d = Math.sqrt((Math.pow(nums[0]-nums[2],2)+Math.pow(nums[1]-nums[3],2)))
    console.log(d);

}


main(require("fs").readFileSync("/dev/stdin","utf-8"));
