N = int(input()) s = [] for n in range(N): s = ["a"] for i in range(6): s.append(chr(ord("a")+(n%(13**(i+1)))//(13**i))) if n == N-1: s.append("n") print("".join(s))