#include using namespace std; int main() { double a,b,x,y; cin >> a >> b >> x >> y; printf("%lf\n", (abs(a-x)+abs(b-y))/2); return 0; }