p=[] print(1) for i in range(2,100): y=[x for x in p if i%x<1] if y:print(chr(65+p.index(y[0]))) else:print(chr(65+len(p)));p+=[i]