#include <bits/stdc++.h>
using namespace std;
int main() {
  int sum = 1;
  int s = 3;
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      if (i % 2 != 0 && j == m - 1 && sum == i) {
        cout << "#";
        sum = sum + 4;
      } else if (i % 2 != 0 && j == 0 && s == i) {
        cout << "#";
        s = s + 4;
      } else if (i % 2 == 0)
        cout << "#";
      else
        cout << ".";
    }
    cout << endl;
  }
}
