n=int(input()) c=65 for i in range(1,n+1,1): for j in range(1,i+1,1): print(chr(c),end='') c+=1 if c>90: c-=26 print()