#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int a, b, c, d; cin >> a >> b >> c >> d; double x = abs(a - c), y = abs(b - d); cout << setprecision(20) << x / 2 + y / 2 << endl; return 0; }