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