#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, max, min, lmax = 0, lmin = 0;
  int m[101], p[101], a, b, c;
  double bf[100][100];
  cin >> n;
  cin >> k;
  for (int i = 0; i < n; i++) {
    if (i % 2 == 0) {
      for (int j = 0; j < k; j++) {
        cout << "#";
      }
      cout << endl;
    } else {
      if (i % 4 == 1) {
        for (int j = 0; j < k - 1; j++) {
          cout << ".";
        }
        cout << "#" << endl;
      } else {
        cout << "#";
        for (int j = 1; j < k; j++) {
          cout << ".";
        }
        cout << endl;
      }
    }
  }
  return 0;
}
