def main():
    n = int(input())
    al = "abcdefghij"
    if n==1:print("a")
    elif n==2:print("aa","ab",sep="\n")
    elif n==3:print("aaa","aab","aba","abb","abc",sep="\n")

if __name__ == '__main__':
    main()