n = int(input())
s = "bcdefghijk"
if n == 1:
    print("a")
elif n == 2:
    print("aa")
    print("ab")
elif n == 5:
    print("aaaab")
    print("aaaac")
    print("aaaad")
    print("aaaae")
    print("aaaaf")