n = int(input())
p = 'abcdefghijklmnopqrstuvwxyz'

for i in range(n):
  s = ''
  for j in range(i+1):
    s += p[j]
  if n % len(s) == 0:
    a = s*(n//len(s))
    print(a)
  else:
    b = n % len(s)
    #print(b)
    a = s*(n//len(s)) + s[:b]
    print(a)