#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  string ara[51][51];
  cin >> n >> m;
  int i = 1;
  while (i <= n) {
    for (int j = 1; j <= m; j++) {
      if (i % 2 == 1) {
        ara[i][j] = '#';
      } else {
        if ((i / 2) % 2 == 1) {
          if (j == m)
            ara[i][j] = '#';
          else
            ara[i][j] = '.';
        } else {
          if (j == 1)
            ara[i][j] = '#';
          else
            ara[i][j] = '.';
        }
      }
    }
    i++;
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) cout << ara[i][j];
    cout << endl;
  }
}
