a = int(input())
i=0
j=1
k=1
l=1
m=1
o=1
p=1
q=1
r=1

while a-i>0:
  for n in range(a-i):
    print("a",end="")
  for n in range(i):
    print("b",end="")
  print("\n")
  i=i+1
while a-j-1>0:
  print("a",end="")
  for n in range(a-j-1):
    print("b",end="")
  for n in range(j):
    print("c",end="")
  print("\n")
  j=j+1
while a-k-2>0:
  print("ab",end="")
  for n in range(a-k-2):
    print("c",end="")
  for n in range(k):
    print("d",end="")
  print("\n")
  k=k+1
while a-l-3>0:
  print("abc",end="")
  for n in range(a-l-3):
    print("d",end="")
  for n in range(l):
    print("e",end="")
  print("\n")
  l=l+1
while a-m-4>0:
  print("abcd",end="")
  for n in range(a-m-4):
    print("e",end="")
  for n in range(m):
    print("f",end="")
  print("\n")
  m=m+1
while a-o-5>0:
  print("abcde",end="")
  for n in range(a-o-5):
    print("f",end="")
  for n in range(o):
    print("g",end="")
  print("\n")
  o=o+1
while a-p-6>0:
  print("abcdef",end="")
  for n in range(a-p-6):
    print("g",end="")
  for n in range(p):
    print("h",end="")
  print("\n")
  p=p+1
while a-q-7>0:
  print("abcdefg",end="")
  for n in range(a-q-7):
    print("h",end="")
  for n in range(q):
    print("i",end="")
  print("\n")
  q=q+1
while a-r-8>0:
  print("abcdefgh",end="")
  for n in range(a-r-8):
    print("i",end="")
  for n in range(r):
    print("j",end="")
  print("\n")
  r=r+1