def foo(n): def bar(): # n以外。 alph = [_ for _ in 'abcdefghijklmopqrstuvwxyz'] # nは100000までだから4文字で十分。 i = 0 for _1 in alph: for _2 in alph: for _3 in alph: for _4 in alph: i += 1 yield _1+_2+_3+('n' if i==n else _4) for i,word in enumerate(bar()): if i == n: break print(word) if __name__ == '__main__': foo(int(input()))