x=n=int(input())-1 while x:x-=1;print(' '*x+'*'*(2*n-x+~x)) print(' '*(n-3)+'COBOL')