#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100 + 10;
int n, m;
char str[MAXN][MAXN];
char low(int first, int second) {
  char a = 'A';
  for (; str[first - 1][second] == a || str[first + 1][second] == a ||
         str[first][second - 1] == a || str[first][second + 1] == a;
       ++a)
    ;
  return a;
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j <= m; ++j)
      if (!str[i][j]) {
        char ch = low(i, j);
        int d = 1;
        for (;
             i + d <= n && j + d <= m && !str[i][j + d] && low(i, j + d) == ch;
             ++d)
          ;
        for (int first = i; first < i + d; ++first)
          for (int second = j; second < j + d; ++second)
            str[first][second] = ch;
      }
  for (int i = 1; i <= n; ++i) puts(str[i] + 1);
  fclose(stdin);
  fclose(stdout);
  return 0;
}
