#include using namespace std; int main() { int a; cin >> a; if (a > 14) { cout << a - 7 << endl; } else { cout << -1 << endl; } return 0; }