#include using namespace std; int main() { cin.tie(0);ios::sync_with_stdio(false); int N; cin >> N; if ((N -= 7) > 7) { cout << N << endl; return 0; } else { cout << -1 << endl; return 0; } return 0; }