#include using namespace std; int main() { int A; cin >> A; if (A - 7 <= 7) cout << "-1"; else cout << A - 7; }