#include <iostream>

using namespace std;

int main(){
    int a;
    cin >> a;
    if(a == 1){
        cout << 1;
    }
    else if(a == 2){
        cout << 2;
    }
    else{
        return 1;
    }
}
