n = int(input())
c = "a"*n
print(c)
c = list(c)
if n > 1:
    p = n
    for j in range(n):
        for i in range(p-1):
            c[-(i+1)] = chr(ord("a") + (j+1))
            print(''.join(c))
        p -= 1