#include using namespace std; int main(){ int N; cin >> N; if (N == 3 || N == 4){ cout << 1 << endl; } else if (N == 5){ cout << 2 << endl; } else if (N == 6){ cout << 3 << endl; } else if (N == 7){ cout << 5 << endl; } else { cout << 11 << endl; } }