#include using namespace std; int calc(int N,int K) { for(int M=1;;M++){ int cnt; if(M<=K) cnt=M*M; else cnt=K*M; if(cnt>=N) return M; } } int main() { int N,K; cin>>N>>K; int M=calc(N,K); vector ans(M,string(M,'.')); for(int i=0;i0 and (i+j)%M