#include <bits/stdc++.h>
using namespace std;
const int maxn = 113;
char res[maxn][maxn];
char getcolor(int i, int j) {
  if (res[i][j] != -1) return res[i][j];
  for (char c = 'A'; c <= 'Z'; ++c)
    if (c != res[i][j - 1] && c != res[i][j + 1] && c != res[i + 1][j] &&
        c != res[i - 1][j])
      return c;
}
int n, m;
int main() {
  scanf("%d%d", &n, &m);
  memset(res, -1, sizeof(res));
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j <= m; ++j) {
      if (res[i][j] != -1) continue;
      char color = getcolor(i, j);
      int k = 0;
      while ((i + k <= n) && (j + k <= m) && (getcolor(i, j + k) == color)) k++;
      for (int l = i; l < i + k; ++l)
        for (int o = j; o < j + k; ++o) res[l][o] = color;
    }
  for (int i = 1; i <= n; ++i, puts(""))
    for (int j = 1; j <= m; ++j) putchar(res[i][j]);
  return 0;
}
