#include <bits/stdc++.h> using namespace std; signed main(){ int a;cin>>a;a-=7; if(a>7)cout<<a<<endl; else cout<<-1<<endl; }