#include using namespace std; int main(){ int n,m; cin>>n>>m; if(n%2==1 && m=m){ cout<<1<=n/2){ cout<<2<