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