n = int(input())
s = "bcdefghijk"
if n == 1:
    print("a")
elif n == 2:
    print("aa")
    print("ab")
elif n >= 3:
    prefix = "a"*(n-1)
    for _ in range(n):
        print("{}{}".format(prefix,s[n-1]))