#include int main(void){ double a, px, py, qx, qy; scanf("%f%f%f%f", &px, &py, &qx, &qy); a = ((px-qx+py-py)/2); if(a>0) printf("%f\n", a); else printf("%f\n", a *= -1); return 0; }