#include <bits/stdc++.h>
using namespace std;
int main() {
  int row, col;
  cin >> row >> col;
  int count = 0;
  char x = '#';
  for (int i = 1; i <= row; i++) {
    for (int j = 1; j <= col; j++) {
      if (i % 2 != 0) {
        cout << "#";
      } else if ((j == 1) && (i % 4 == 0))
        cout << "#";
      else if ((i % 4 != 0) && (j == col)) {
        cout << "#";
      } else {
        cout << ".";
      }
    }
    cout << endl;
  }
  return 0;
}
