#include using namespace std; int main(){ int Px,Py,Qx,Qy;cin>>Px>>Py>>Qx>>Qy; int s = abs(Px-Qx)+abs(Py-Qy); cout << (double)s/2 << endl; }