# Python is awesome

for i in range(10):
    print('Python is awesome!')

# Repeat after me 1

text = input()
num = int(input())
for i in range(num):
    print(text)

# Character sequence

for i in range(6):
    print('AAA')
for i in range(5):
    print('BBBB')
print('E')
for i in range(9):
    print('TTTTT')
print('G')

# Star rectangle

n = int(input())
for i in range(n):
    print('*' * 19)
