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