#include <bits/stdc++.h>
using namespace std;
set<long long int>::iterator it;
map<char, long long int>::iterator itm;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  t = 1;
  while (t--) {
    long long int n, m, i, l = 0, r = 0, ans = 0, j, k, x, y, z, c1 = 0,
                           sum = 0, c2 = 0, c3 = 0, c4 = 0, c5 = 0, c6 = 0,
                           flag = 0, ind3 = -1, ind = -1, ind2 = -1;
    cin >> n >> m;
    for (long long int i = 0; i < n; i++) {
      if (i % 2 == 0) {
        for (long long int j = 0; j < m; j++) {
          cout << "#";
        }
        cout << "\n";
      } else {
        if ((i - 1) % 4 == 0) {
          for (long long int j = 1; j < m; j++) cout << ".";
          cout << "#";
          cout << "\n";
        } else {
          cout << "#";
          for (long long int j = 0; j < m - 1; j++) cout << ".";
          cout << "\n";
        }
      }
    }
  }
}
