#include #include int main(void){ int Px,Py,Qx,Qy; scanf("%d %d %d %d",Px,Py,Qx,Qy); printf("%d",(abs(Px)+abs(Qx)+abs(Py)+abs(Qy))/2); return 0; }