#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; deque deq; deq.push_back(N); int h=0,w=0; vector ans(2000,string(2000,'#')); while(!deq.empty()){ int u=deq.front();deq.pop_front(); int a=u/2,b=u-a; for(int i=h;i<=h+a;i++){ for(int j=w;j<=w+b;j++){ ans[i][j]='.'; } } if(a>1) deq.push_back(a); if(b>1) deq.push_back(b); h+=a; w+=b; } cout<