#include"bits/stdc++.h" using namespace std; int main() { double px,py,qx,qy; cin >> px >> py >> qx >> qy; printf("%.20f\n", (abs(py - qy) + abs(px - qx)) / 2.0); }