#include <bits/stdc++.h>
using namespace std;
long n, m;
void wr(int i) {
  if (i == 0 || i == 2) {
    for (long i = 0; i < m; i++) cout << '#';
    cout << endl;
    return;
  }
  if (i == 1) {
    for (long i = 1; i < m; i++) cout << '.';
    cout << '#' << endl;
    return;
  }
  if (i == 3) {
    cout << '#';
    for (long i = 1; i < m; i++) cout << '.';
    cout << endl;
    return;
  }
}
int main() {
  cin >> n >> m;
  for (long i = 0; i < n; i++) wr(i % 4);
  return 0;
}
