#include using namespace std; typedef long long ll; signed main(){ ios::sync_with_stdio(false); cin.tie(0); ll n; cin>>n; ll a=3,b=n-3; if(n<=5 || n==7){ cout<<-1<