#include using namespace std; #define REP(i,n) for(ll i=0; i<(ll)(n); i++) #define FOR(i,n,m) for (ll i=n; i<(ll)(m); i++) #define pb push_back #define INF 1000000007LL #define all(a) (a).begin(),(a).end() typedef long long ll; typedef pair p; int dy[4]={-1,1,0,0}; int dx[4]={0,0,1,-1}; int px,py; int qx,qy; int main(){ ios::sync_with_stdio(false); cin >> px >> py; cin >> qx >> qy; cout << setprecision(10) << fixed << ( abs(px-qx) + abs(py-qy) ) / 2.0 << endl; return 0; }