import sys

N = int(sys.stdin.readline().strip())
alpha = "abcdefghij"

tmp = ["a"] * N
print("".join(tmp))
for i in range(1, N):
    for j in range(0, N - i):
        tmp[N-j-1] = alpha[i]
        print("".join(tmp))