a=int(input('')) b=65 for i in range(1,a+1): for j in range(1,i+1): print(chr(b),end='') b+=1 if b>90: b=65 print('')