#include using namespace std; typedef long long ll; #define all(x) (x).begin(),(x).end() const int mod=1000000007,MAX=1<<18; const ll INF=1LL<<55; int main(){ int N,K;cin>>N>>K; if(K*K<=N){ int M=(N+K-1)/K; cout<> S(M,vector(M,'.')); for(int i=0;i=N) break; } cout<0){ cout<<'#'; N--; } else cout<<'.'; } cout<