#include using namespace std; int main(){ int x, y; cin >> x >> y; if(x==y){ cout << "1"; }else{ cout<< "2"; } }