#include int main(void){ int a,Ans; scanf("%d",&a); Ans = a - 7; if (Ans < 8){ printf("-1\n"); }else{ printf("%d\n",Ans); } return 0; }