#include "bits/stdc++.h" using namespace std; int main(){ double px, py, qx, qy; cin >> px >> py >> qx >> qy; std::cout << std::fixed << std::setprecision(1); cout << (abs(px-qx) + abs(py-qy))/2 << endl; }