n=int(input("enter the number"))
n=int(input("enter the number"))
i=1
while i<=n:
    a=1
    while a<=i:
        print(chr(64+i),end=" ")
        a=a+1
    print(i)
    i=i+1


# n=int(input("enter the number"))
# a=1
# while a<=n:
#     print(chr(64+a),end=" ")
#     a=a+1
# print(a)


# i=1
# while i<=65:
#     print(chr(64+i),end=" ")
#     i=i+1
# print()

# i=1
# while i<=26:
#     print(chr(96+i),end=" ")
#     i=i+1
#     print()