#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
int a[100 + 50][100 + 50];
int main() {
  int n, m;
  while (cin >> n >> m) {
    memset(a, 0, sizeof(a));
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) {
        if (a[i][j]) continue;
        for (int k = 1; k <= 26; k++) {
          if (a[i - 1][j] == k || a[i][j + 1] == k) continue;
          if (a[i][j - 1] == k || j == 1) {
            int num = 0, cnt = i;
            while (cnt <= n && a[cnt][j - 1] == k) cnt++, num++;
            num++;
            if (i + num - 1 > n) continue;
            for (int h = i; h <= i + num - 1; h++) {
              a[h][j] = k;
            }
            for (int h = j - num + 1; h <= j; h++) a[i + num - 1][h] = k;
          }
          a[i][j] = k;
          break;
        }
      }
    }
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) {
        if (j == m)
          printf("%c\n", (char)a[i][j] + 64);
        else
          printf("%c", (char)a[i][j] + 64);
      }
    }
  }
  return 0;
}
