(n=gets.to_i).times{|i|puts i>n-2?' '*(n-4)+'COBOL':' '*(n-i-2)+'*'*i.id}