#include int main() { int a; std::cin >> a; int x = (a >= 15)? (a - 7):-1; std::cout << x << std::endl; return 0; }