#include int main() { int A; int X; scanf("%d",&A); X = A - 7; if (X >= 8) { printf("%d",X); } else { printf("-1"); } return 0; }