#include <bits/stdc++.h>
using namespace std;
int a[10000];
int b[10000];
int main() {
  int c = 0;
  int x = 0;
  int y = 0;
  int z = 0;
  while (1) {
    cin >> a[x] >> b[x];
    if (a[x] == 0 && b[x] == 0) {
      break;
    }
    x++;
  }
  c = x;
  for (x = 0; x < c + 1; x++) {
    for (y = 0; y < a[x]; y++) {
      for (z = 0; z < b[x]; z++) {
        if (y % 2 == z % 2) {
          cout << "#";
        } else {
          cout << ",";
        }
      }
      cout << endl;
    }
    cout << endl;
  }
  cout << endl;
}
