#include <bits/stdc++.h>
using namespace std;
int n, m;
int a[103][103];
int main() {
  scanf("%d%d", &n, &m);
  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;
          int l = i;
          while (l <= n && a[l][j - 1] == k) num++, l++;
          num++;
          if (i + num - 1 > n) continue;
          for (int t = i; t <= i + num - 1; t++) a[t][j] = k;
          for (int t = j; t >= j - num + 1; t--) a[i + num - 1][t] = k;
        }
        a[i][j] = k;
        break;
      }
    }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) printf("%c", a[i][j] + 64);
    printf("\n");
  }
}
