#include int main(void){ int px,py,qx,qy; float d; std::cin >> px >>py; std::cin >> qx >>qy; d=abs(px-qx)+abs(py-qy); std::cout << (float)(d/2) << std::endl; }