#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a<1&&b<10){ cout<<1; } else if(a<1&&b<102){ cout<<2; } else if(a<1&&b<120){ cout<<3; } else if(a<1&&b<201){ cout<<4; } return 0; }