#include using namespace std; typedef long long ll; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b>N; if(N==1){ cout<<"0 0 0\n"; }else if(N==2){ cout<<"-1\n"; }else if(N==3){ cout<<"0 0 0 2 2 1 1 2 1\n"; }else{ cout<<"-1\n"; } }