#include <bits/stdc++.h>
using namespace std;
int m, n, arr[200][200];
int color(int x, int y) {
  int col = 1;
  while (arr[x - 1][y] == col or arr[x][y - 1] == col or arr[x + 1][y] == col or
         arr[x][y + 1] == col)
    col++;
  return col;
}
int color2(int x, int y) {
  int col = 1;
  while (arr[x - 1][y] == col or arr[x + 1][y] == col or arr[x][y + 1] == col)
    col++;
  return col;
}
int fit(int x, int y, int col) {
  if (arr[x][y - 1] == col or arr[x + 1][y] == col or arr[x][y + 1] == col)
    return 0;
  return 1;
}
int main() {
  cin >> m >> n;
  int x = 1, y = 1;
  while (x <= m) {
    if (y == n + 1) {
      x++;
      y = 1;
      continue;
    }
    if (arr[x][y]) {
      y++;
      continue;
    }
    int xx = x, yy = y, col = color(x, y);
    arr[x][y] = col;
    while (xx + 1 <= m and yy + 1 <= n and !arr[xx + 1][y] and
           !arr[x][yy + 1] and fit(xx + 1, y, col) and color2(x, yy + 1) == col)
      xx++, yy++;
    for (int i = x; i <= xx; i++)
      for (int j = y; j <= yy; j++) arr[i][j] = col;
  }
  for (int i = 1; i <= m; i++) {
    for (int j = 1; j <= n; j++) printf("%c", (char)(arr[i][j] + 'A' - 1));
    puts("");
  }
}
