#include <bits/stdc++.h>
using namespace std;
char table[102][102];
char minchar(int i, int j) {
  if (table[i][j] != -1) return table[i][j];
  char c = 'A';
  while (c == table[i - 1][j] || c == table[i + 1][j] || c == table[i][j - 1] ||
         c == table[i][j + 1])
    c++;
  return c;
}
int main() {
  int row, col;
  cin >> row >> col;
  memset(table, -1, sizeof(table));
  for (int i = 1; i <= row; i++)
    for (int j = 1; j <= col; j++) {
      if (table[i][j] != -1) continue;
      char c = minchar(i, j);
      int size = 1;
      while (i + size <= row && j + size <= col && minchar(i, j + size) == c)
        size++;
      for (int x = i; x < i + size; x++)
        for (int y = j; y < j + size; y++) table[x][y] = c;
    }
  for (int i = 1; i <= row; i++) {
    for (int j = 1; j <= col; j++) cout << table[i][j];
    cout << endl;
  }
  return 0;
}
