#include using namespace std; const long long mod=1e9+7; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin>>N; if(N%2){ cout<<"1\n"; }else{ cout<