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