#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define FOR(I,A,B) for(int I = (A); I < (B); ++I) typedef long long ll; int main(){ double x1,y1,x2,y2; cin >> x1 >> y1 >> x2 >> y2; double xx = abs(x1 - x2); double yy = abs(y1 - y2); cout << (xx + yy) / 2.0 << endl; return 0; }