n;main(k){scanf("%d%d",&n,&k);n=!printf("%d",n*k-2?1<