#include<iostream> #include<math.h> using namespace std; int main(){ double a,b,c,d; cin>>a>>b>>c>>d; cout<<floor(sqrt(pow(a-c,2)+pow(b-d,2)))<<endl; return 0; }