#include <bits/stdc++.h>
using namespace std;
void solve();
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long T;
  T = 1;
  while (T--) solve();
}
void solve() {
  int row, column;
  cin >> row >> column;
  for (int i = 1; i <= row; i++) {
    if (i % 2 != 0) {
      int temp = column;
      while (temp--) cout << "#";
      cout << "\n";
    } else if (i % 4 == 0) {
      int temp = column - 1;
      cout << "#";
      while (temp--) cout << ".";
      cout << "\n";
    } else {
      int temp = column - 1;
      while (temp--) cout << ".";
      cout << "#";
      cout << "\n";
    }
  }
}
