import itertools import string N = int(input()) i = 0 for s in itertools.product(string.ascii_lowercase, repeat=10): if i == N - 1: print("a" + "".join(s) + "n") break print("a" + "".join(s) + "a") i += 1