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