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