n = int(input()) alphabet = "abcdefghijklmopqrstuvwxyz" pre = alphabet[0] for i in range(n-1): last = alphabet[i%25] print(pre + alphabet[i//(25**3)] + alphabet[i//(25**2)] + alphabet[i//(25**1)] + last) pre = last print(pre + "n")