#include <bits/stdc++.h>
using namespace std;
char c[55][55];
int main() {
  int n, m;
  scanf("%d %d", &n, &m);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) c[i][j] = '0';
  }
  for (int i = 1; i < n; i += 4) {
    for (int j = 0; j < m - 1; j++) c[i][j] = '.';
  }
  for (int i = 3; i < n; i += 4) {
    for (int j = m - 1; j >= 1; j--) c[i][j] = '.';
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      if (c[i][j] != '.') c[i][j] = '#';
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) printf("%c", c[i][j]);
    printf("\n");
  }
  return 0;
}
