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