n=input()-1 for i in range(n):print ' '*(n-i-1)+'*'*(2*i+1) print ' '*(n-3)+'COBOL'