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