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