n = int(input("enter n: ")) als = [chr(i) for i in range(65, 65+26)] for m in reversed(range(1, n+1)): s = als[:m] print(*s+s[::-1], sep="")