#include using namespace std; int main(){ int px = 0, py = 0; int qx = 0, qy = 0; cin >> px >> py; cin >> qx >> qy; cout << float( abs(px) + abs(qx) + abs(py) + abs(qy) ) / 2 << endl; return 0; }