#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  char c[101][101];
  cin >> a >> b;
  for (int i = 1; i <= a; i++) {
    for (int j = 1; j <= b; j++) {
      if (i % 2 != 0) {
        c[i][j] = '#';
      }
    }
  }
  for (int i = 2; i <= a; i += 4) {
    for (int j = 1; j <= b; j++) {
      c[i][j] = '.';
      c[i][b] = '#';
    }
  }
  for (int i = 4; i <= a; i += 4) {
    for (int j = 1; j <= b; j++) {
      c[i][j] = '.';
      c[i][1] = '#';
    }
  }
  for (int i = 1; i <= a; i++) {
    for (int j = 1; j <= b; j++) {
      cout << c[i][j];
    }
    cout << endl;
  }
  return 0;
}
