text: """
  Creator : Kevin Lee
  Updated : 211030
  Reference : BOJ 2446
  """
  
  num = int(input())
  
  for i in range(num):
      print(" " * (i), "*" * (2*(num-i-1)+1), " " * (i))
  
  for i in range(num-1):
      print(" " * (num-i-2), "*" * (2*i+3), " " * (num-i-2))