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