#include <iostream>
using namespace std;
int a;
int b;
int main() {
cin >> a >> b;
for (int i = 1; i <= a; i++){
for (int j = 1; j <= b; j++){
if (i%2 == 0){
if (i%2 == 0 && j!= b){
cout << ".";
}
else if ((i * 4 + 2) == 0 && j!= b){
cout << ".";
}
else {
cout << "#";
}
}
else{
cout << "#";
}
}
cout << endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IGE7CmludCBiOwoKaW50IG1haW4oKSB7CgljaW4gPj4gYSA+PiBiOwoJCglmb3IgKGludCBpID0gMTsgaSA8PSBhOyBpKyspewoJCWZvciAoaW50IGogPSAxOyBqIDw9IGI7IGorKyl7CgkJCWlmIChpJTIgPT0gMCl7CgkJCQlpZiAoaSUyID09IDAgJiYgaiE9IGIpewoJCQkJCWNvdXQgPDwgIi4iOwoJCQkJfQoJCQkJZWxzZSBpZiAoKGkgKiA0ICsgMikgPT0gMCAmJiBqIT0gYil7CgkJCQkJY291dCA8PCAiLiI7CgkJCQl9CgkJCQllbHNlIHsKCQkJCQljb3V0IDw8ICIjIjsKCQkJCX0KCQkJCQoJCQl9CgkJCWVsc2V7CgkJCQljb3V0IDw8ICIjIjsKCQkJfQoJCX0KCQljb3V0IDw8IGVuZGw7Cgl9Cgp9