n,d=gets.split.map(&:to_i) c=[n-d,0].max n-=c b=[d-n,0].max n-=b puts ?A*n+?B*b+?C*c