c = input()
for i in range(5):
    for j in range (i+5):
        if i + j > 3 and (i + j) % 2 == 0:
            print(c, end = '')
        else:
            print(' ', end = '')
    print()