#include using namespace std; int main() { int n; cin >> n; if(n < 10) { cout << n << endl; } else if(n == 10) { cout << 9 << endl; } else { cout << 11 << endl; } }