#用i来控制行,用j来控制字符出现区域的数目。
single_str = input()

for i in range(1,6):
    print(' '*(5-i),end = '')
    for j in range(1,2*i):
        
        if j%2 != 0:
            print(single_str,end='')
        else:
            print(' ',end = '')

    print(' '*(5-i))