#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you const int INF = 999999999; const int MOD = 1e9 + 7; const double pi = 3.141592653589793238; int main() { int n; cin >> n; if (n < 15) { cout << -1 << endl; return 0; } cout << n - 7 << endl; }