import sys
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
n=INT()
l=["aaaa","aaab","aaba","aabb","abaa","abab","abbb","baaa","baab","babb"]
if n==4:
    for i in range(n):
        print("a"*(n-4)+l[i])
    exit()
if n==1:
    print("a")
    exit()
if n==2:
    print("aa")
    print("ab")
    exit()
if n==3:
    print("aaa")
    print("aab")
    print("aba")
    exit()
if n==5:
    print("aaaaa")
    print("aaaab")
    print("aaaba")
    print("aaabb")
    print("aaabc")
if n==6:
    print("aaaaaa")
    print("aaaaab")
    print("aaaaba")
    print("aaaabc")
    print("aaabaa")
    print("aaabab")
if n==7:
    print("aaaaaaa")
    print("aaaaaab")
    print("aaaaaba")
    print("aaaaabb")
    print("aaaaabc")
    print("aaaabaa")
    print("aaaabab")
if n==8:
    print("aaaaaaaa")
    print("aaaaaaab")
    print("aaaaaaba")
    print("aaaaaabb")
    print("aaaaaabc")
    print("aaaaabaa")
    print("aaaaabab")
    print("aaaaabac")
if n==9:
    print("aaaaaaaaa")
    print("aaaaaaaab")
    print("aaaaaaaba")
    print("aaaaaaabb")
    print("aaaaaaabc")
    print("aaaaaabaa")
    print("aaaaaabab")
    print("aaaaaabac")
    print("aaaaaabba")
if n==10:
    print("aaaaaaaaaa")
    print("aaaaaaaaab")
    print("aaaaaaaaba")
    print("aaaaaaaabb")
    print("aaaaaaaabc")
    print("aaaaaaabaa")
    print("aaaaaaabab")
    print("aaaaaaabac")
    print("aaaaaaabba")
    print("aaaaaaabbb")
    #print("aaaaaaabbc")