#include int main(void){ int gx,gy; scanf("%d %d",&gx,&gy); if(abs(gx) == abs(gy)){ printf("1"); } else{ printf("2"); } }