a=int(input())-1 b=-1 while a: a-=1 b+=2 print(a*' '+b*'*') b//=2 print((b-2)*' '+'COBOL')