#include #include #include using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int a,b,c,d; cin >> a >> b >> c >> d; cout << (double)(abs(a-c)+abs(b-d))/2 << endl; }