#include using namespace std; struct node{ int x,y,t; }p; int n; bool check( int x,int y){ if(x>=n ||y>=n || x<0 || y<0) return false; return true; } int main(){ cin >> n; for(int i=0; i q; p.x = 0; p.y = 0; p.t = 0; q.push(p); int a = i+1; int b = j+1; bool visited[50][50]; memset(visited,false,sizeof visited); while(!q.empty()){ int xt = q.front().x; int yt = q.front().y; int t1 = q.front().t; if(xt == n-1 && yt == n-1){ cout<