#include<bits/stdc++.h> using namespace std; int main(){ double a,b; double x,y; cin>>a>>b>>x>>y; printf("%.4lf",sqrt(pow((a-x),2)+pow((b-y),2))); }