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