for i in range(10):
    print(i * str(i))

print('------------------------------')

for i in range(10):
    for j in range(i):
        print(i, end='')
    print()

for i in range(10):
    print(i * str(i))

print('------------------------------')

for i in range(10):
    for j in range(i):
        print(i, end='')
    print()
