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