#include main() { int Px,Py,Qx,Qy,length; scanf("%d%d%d%d",&Px,&Py,&Qx,&Qy); if(Px>Qy){ length=Px-Qx; } else{ length=Qx-Px; } if(Py>Qy){ length+=Py-Qy; } else{ length+=Qy-Py; } printf("%d",length); return(0); }