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