N = int(input())
chrA = ["a", "b"]

def getBin(number):
    ans = list(map(int, bin(number)[2:].zfill(N)))
    strAns = ""
    for i in range(len(ans)):
        strAns += chrA[ans[i]]

    print(strAns)
    return 0

for _ in range(N):
    getBin(_)
