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