#include <bits/stdc++.h>
using namespace std;
template <typename T, typename U>
ostream& operator<<(ostream& os, const pair<T, U>& p) {
  os << "(" << p.first << "," << p.second << ")";
  return os;
}
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& v) {
  os << "[";
  for (__typeof((v).begin()) i = (v).begin(); i != (v).end(); ++i) {
    if (i != v.begin()) os << ", ";
    os << *i;
  }
  os << "]";
  return os;
}
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  vector<vector<char> > A(n + 2, vector<char>(m + 2, '.'));
  for (int i = (int)(1); i <= (int)(n); ++i)
    for (int j = (int)(1); j <= (int)(m); ++j)
      if (A[i][j] == '.')
        for (int c = (int)('A'); c <= (int)('Z'); ++c) {
          if (A[i - 1][j] == c || A[i][j + 1] == c) continue;
          if (A[i][j - 1] == c) {
            if (A[i - 1][j - 1] == c) continue;
            int s = 1;
            while (A[i + s][j - 1] == c) ++s;
            if (i + s > n) continue;
            bool ok = true;
            for (int k = 0; k < (int)(s + 1); ++k)
              if (A[i + s][j - k] != '.') {
                ok = false;
                break;
              }
            if (!ok) continue;
            for (int k = 0; k < (int)(s + 1); ++k)
              A[i + s][j - k] = A[i + k][j] = c;
            break;
          }
          A[i][j] = c;
          break;
        }
  for (int i = (int)(1); i <= (int)(n); ++i) {
    for (int j = (int)(1); j <= (int)(m); ++j) putchar(A[i][j]);
    putchar('\n');
  }
}
