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")
# ls=list("abcdefghijklmn")
# for i in range(n):
#     print("a"*(n-1)+ls[i])
