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