#include #include using namespace std; int main() { int px, py, qx, qy; cin >> px >> py >> qx >> qy; cout << round(fabs(px -qx) + fabs(py-qy)) / 2 << endl; return 0; }