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