#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,n) for(int i=0; i=b; --i) #define ALL(c) (c).begin(), (c).end() typedef long long ll; typedef vector VI; typedef vector VL; typedef vector VVL; typedef vector VVI; typedef pair P; typedef pair PL; int main() { int a, b, c, d; cin >> a >> b >> c >> d; printf("%.2f\n", ((abs(a-c)+abs(b-d))/2.0)); return 0; }