
# Triangle
def triangle(n)
  if n < 1 
    return [""]
  end

  a = Array.new(n) { |i| "*" * (i + 1) }  # repeat "*" i times!
  return a + a.reverse().drop(1)
end

# Program interface
input = gets.to_i()
triangle(input).each { |s| puts s}
