#include "bits/stdc++.h" #define debug(x) cout<<#x<<": "< VI; typedef vector> VVI; typedef long long ll; void solve() { #ifdef _WIN32 istream &cin = ifstream("input.txt"); #endif ll n; cin >> n; if (n < 15) { cout << -1 << endl; } else { cout << n - 7 << endl; } } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); system("PAUSE"); return 0; }