#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 << (float)s/2 << endl; }