#pragma GCC optimize("Ofast") #pragma GCC target("avx2") #define rd_init() char*rp=({char*mmap();mmap(0l,1l<<25,1,2,0,0ll);}) #define rd() ({int _v=0,_c;while(_c=*rp++-48,_c>=0)_v=_v*10+_c;_v;}) #define rep(v,e) for(typeof(e)v=0;vn*n){ *wp++='N'; *wp++='o'; *wp++='\n'; }else{ *wp++='Y'; *wp++='e'; *wp++='s'; *wp++='\n'; if(kn-2&&(k*2-n)%n%3<2); rep(y,n){ rrep(x,n){ *wp++= a?--a,'.': (x