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