#include #include #include #include #include #include //--------------------------- using namespace std; //--------------------------- #define REP(i,n) for(int i = 0; i < (n); i++) #define P(x) cout << (x) << "\n" //--------------------------- int main(){ std::ios::sync_with_stdio(false); std::cin.tie(0); int px,py,qx,qy;cin>>px>>py>>qx>>qy; int X = fabs(px - qx)+fabs(py - qy); //P(X / 2.0); if (X > 200000) { if (X % 2 ==1) { int b = X / 2.0; string a = to_string(b)+ ".5"; P(a); }else{ P(X / 2.0); } }else{ P(X / 2.0); } return 0; }