#!/usr/bin/python2 # -*- coding: utf-8 -*- # † n, d = map(int, raw_input().split()) v = [0] * n for loop in xrange(2): for i in reversed(xrange(n)): if d > 0: v[i] += 1 d -= 1 res = ''.join('CAB'[x] for x in v) print res