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