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