#include <bits/stdc++.h>
using namespace std;
int has[4];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m, se = 0;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      if (i % 2 == 0) {
        cout << "#";
      } else if ((i - 1) % 4 == 0) {
        if (j != m - 1)
          cout << ".";
        else
          cout << "#";
      } else if ((i - 3) % 4 == 0) {
        if (j == 0)
          cout << "#";
        else
          cout << ".";
      }
    }
    cout << endl;
  }
  return 0;
}
