#include using namespace std; using ll =long long; #define all(v) v.begin(),v.end() #define rep(i,a,b) for(int i=a;i=b;i--) int main() { ll N;cin>>N; if(N==1) { cout<<-1<> a((1LL< (1LL<=0;j--) { a[j][i]=k+(1LL<=(1LL<<(N-1));i--) { ll k=(1LL<<(N))*((1LL<=0;j--) { a[j][i]=k+(1LL<