#include int main() { int x; scanf("%d", &x); printf("%d\n", x > 14 ? x - 7 : -1); }