# 1
for i in range(5):
print(f"{i+1}) {'0'*(i+1)}")
# 2
summ = 0
for i in range(14+1):
summ += i
print(summ)
# 3
for i in range(15,21):
print(i)
# 1
for i in range(5):
print(f"{i+1}) {'0'*(i+1)}")
# 2
summ = 0
for i in range(14+1):
summ += i
print(summ)
# 3
for i in range(15,21):
print(i)