#include typedef long long int ll; using namespace std; int main() { ll n; cin>>n; if(n%2==1){ cout<<2<