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