#include #define rep(i,n) for (int i = 0; i < (n); i ++) using namespace std; typedef long long ll; typedef pair PL; typedef pair P; const int INF = 1e9; const ll MOD = 1e12; const double eps = 1e-6; int main() { int N,D; cin >> N >> D; string ans; if (D >= N){ int b = D - N,a = 2*N - D; rep(_,a) ans += 'A'; rep(_,b) ans += 'B'; } else { int a = D,c = N - D; rep(_,a) ans += 'A'; rep(_,c) ans += 'C'; } cout << ans << endl; }