#include using namespace std; #define modulo 1000000007 #define mod(mod_x) ((((long long)mod_x+modulo))%modulo) #define Inf 100000000 int main(){ int N,K; cin>>N>>K; int M; for(int i=1;i<=10000;i++){ if((i/K)*K*K + (i%K)*(i%K) >= N){ M = i; break; } } vector> ans(M,vector(M,'.')); int cnt = 0; for(int i=0;i=M)continue; if(cnt>=N)continue; ans[i][a] = '#'; cnt++; } } for(int i=0;i