#include using namespace std; void speed() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); } const int maxn=205; struct el { int ax,ay,bx,by,cx,cy; el() {} el(int x1,int y1,int x2,int y2,int x3,int y3) { ax=x1; ay=y1; bx=x2; by=y2; cx=x3; cy=y3; } }; const int maxq=11; el e[4]; int q,n; int pcs=5; int ans[maxn][maxn],t[maxn][maxn]; int fits(int i,int j,int k) { //---------- int cx=e[k].ax+i; int cy=e[k].ay+j; if(cx>n||cx<1)return 0; if(cy>n||cy<1)return 0; if(ans[cx][cy]!=0)return 0; //---------- cx=e[k].bx+i; cy=e[k].by+j; if(cx>n||cx<1)return 0; if(cy>n||cy<1)return 0; if(ans[cx][cy]!=0)return 0; //---------- cx=e[k].cx+i; cy=e[k].cy+j; if(cx>n||cx<1)return 0; if(cy>n||cy<1)return 0; if(ans[cx][cy]!=0)return 0; //---------- return 1; } void solve() { cin>>q; //---------- e[0].ax=0; e[0].ay=0; e[0].bx=1; e[0].by=0; e[0].cx=0; e[0].cy=1; //-------- e[1].ax=0; e[1].ay=0; e[1].bx=1; e[1].by=0; e[1].cx=1; e[1].cy=1; //-------- e[2].ax=0; e[2].ay=0; e[2].bx=-1; e[2].by=1; e[2].cx=0; e[2].cy=1; //-------- e[3].ax=0; e[3].ay=0; e[3].bx=0; e[3].by=1; e[3].cx=1; e[3].cy=1; //---------- for(int z=1; z<=q; z++) { for(int i=1; i<=n; i++) { for(int j=1; j<=n; j++) { ans[i][j]=0; } } cin>>n; if(n==1) { cout<<0<