#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  int st = 0, i, j;
  cin >> n >> m;
  char arr[n][m];
  for (i = 0; i < n; i++) {
    for (j = m - 1; j >= 0; j--) {
      if (i % 2 == 0)
        arr[i][j] = '#';
      else if (i % 4 == 1 && j == m - 1) {
        arr[i][j] = '#';
      } else if (i % 4 == 3 && j == 0) {
        arr[i][j] = '#';
      } else
        arr[i][j] = '.';
    }
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) cout << arr[i][j];
    cout << "\n";
  }
}
