#include <bits/stdc++.h>
using namespace std;
void fun();
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t = 1;
  fun();
}
void fun() {
  long long n, m;
  cin >> n >> m;
  vector<vector<char>> table(n, (vector<char>(m, '.')));
  for (long long i = 0; i < n; i++) {
    long long rowNumber = i + 1;
    if (rowNumber % 2 == 0) {
      if (rowNumber % 4 == 0) {
        table[i][0] = '#';
      } else {
        table[i][m - 1] = '#';
      }
      continue;
    }
    for (long long j = 0; j < m; j++) {
      table[i][j] = '#';
    }
  }
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < m; j++) {
      cout << table[i][j];
    }
    cout << "\n";
  }
}
