#include using namespace std; int main(){ int N, K; cin >> N >> K; int M = (N+K-1)/K; cout << M << endl; for(int i=0; i 0 && (i+j)%M < K){ cout << "#"; N--; }else{ cout << "."; } } cout << endl; } return 0; }