#include main(){ int A,B; scanf("%d%d",&A,&B); printf("%d\n",A==B?0:A