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