#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int inf = 1e9 + 7;
const ll longinf = 1LL << 60;
const ll mod = 1e9 + 7;
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = (int)(0); i < (int)(n); ++i) {
    if (i % 2 == 0)
      for (int j = (int)(0); j < (int)(m); ++j) printf("#");
    else if (i % 4 == 1) {
      for (int j = (int)(0); j < (int)(m - 1); ++j) printf(".");
      printf("#");
    } else {
      printf("#");
      for (int j = (int)(0); j < (int)(m - 1); ++j) printf(".");
    }
    cout << "\n";
  }
  return 0;
}
