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