import itertools n=int(input()) def solve(a): ans="abcdefghi" cnt_str="abcdefghijklmopqrstuvwxyz" cnt=0 for s in itertools.permutations(ans): start=cnt%26 end=start+1 if end==26: end=0 print(cnt_str[start]+"".join(list(s))+cnt_str[end]) cnt+=1 if cnt==(a-1): print(cnt_str[end]+"".join(list(s))+"n") break return solve(n)