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