const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const arr = input.split(' ').map(Number);
const x = Math.pow((arr[0] - arr[2]),2) + Math.pow((arr[1] - arr[3]),2);
const dist = Math.sqrt(x).toFixed(4);
console.log(dist);
