#include <bits/stdc++.h>
using namespace std;
int m, n, i, j;
int main() {
  cin >> n >> m;
  for (i = 1; i <= n; i++) {
    if (i % 2 == 1) {
      for (j = 0; j < m; j++) cout << "#";
    } else if (i % 4 == 2) {
      for (j = 0; j < m - 1; j++) cout << ".";
      cout << "#";
    } else {
      cout << "#";
      for (j = 0; j < m - 1; j++) cout << ".";
    }
    cout << endl;
  }
  return 0;
}
