#include <bits/stdc++.h>
using namespace std;
char g[110][110];
bool can(int i, int j, char c) {
  if (g[i][j]) return 0;
  return !(g[i - 1][j] == c || g[i][j - 1] == c || g[i + 1][j] == c ||
           g[i][j + 1] == c);
}
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      if (g[i][j]) {
        continue;
      }
      for (char c = 'A'; c <= 'Z'; c++) {
        if (can(i, j, c)) {
          int k;
          for (k = 0; i + k <= n && j + k <= m; k++) {
            if (!can(i, j + k, c)) break;
            if (!can(i + k, j, c)) break;
            char t;
            for (t = 'A'; t < c; t++) {
              if (can(i, j + k, t)) break;
            }
            if (t < c) break;
          }
          for (int ii = i; ii < i + k; ii++) {
            for (int jj = j; jj < j + k; jj++) {
              g[ii][jj] = c;
            }
          }
          break;
        }
      }
    }
    puts(g[i] + 1);
  }
  return 0;
}
