#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,d,e; cin>>a>>b>>c>>d; e=sqrt((a-c)*(a-c)+(b-d)*(b-d)); cout<<int(e)<<endl; return 0; }