#include <bits/stdc++.h>
using namespace std;
int a[205][205];
int work(int x, int y) {
  if (a[x][y]) return a[x][y];
  for (int i = 1; i <= 26; i++)
    if (a[x - 1][y] != i && a[x][y - 1] != i && a[x + 1][y] != i &&
        a[x][y + 1] != i)
      return i;
}
int main() {
  int i, j, pi, pj, n, m, c, k;
  cin >> n >> m;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= m; j++) {
      if (a[i][j]) continue;
      c = work(i, j);
      k = 0;
      while (work(i, j + k) == c && i + k <= n && j + k <= m) k++;
      for (pi = i; pi < i + k; pi++)
        for (pj = j; pj < j + k; pj++) a[pi][pj] = c;
    }
  }
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= m; j++) cout << char(a[i][j] - 1 + 'A');
    puts("");
  }
  return 0;
}
