N,D=gets.split.map &:to_i b=[D-N,0].max c=[N-D,0].max a=N-b-c puts ?A*a+?B*b+?C*c