#include <bits/stdc++.h>
using namespace std;
long long n, m, k, c, ans, x, y, z, a[300001], b[300001], d[300001];
string second, t, S[100001];
pair<long long, long long> A[100001];
char ch[1001][1001];
int main() {
  cin >> n >> m;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= m; j++) ch[i][j] = '.';
  for (int i = 1; i <= n; i += 2)
    for (int j = 1; j <= m; j++) ch[i][j] = '#';
  for (int i = 2; i <= n; i += 2)
    if (i % 4 == 0)
      ch[i][1] = '#';
    else
      ch[i][m] = '#';
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) cout << ch[i][j];
    cout << endl;
  }
  return 0;
}
