#include #include using namespace std; int main() { double a, b, c, d; cin >> a >> b >> c >> d; cout << (abs(a - c) + abs(b - d)) / 2 << endl; }