N = int(eval(input()))



cnt = [0] + [26 ** i for i in range(1, 11)]

for i in range(10):

    cnt[i + 1] += cnt[i]



ans = ""

x = N - 1

for i in reversed(list(range(1, 11))):

    if x >= cnt[i]:

        v = (x - cnt[i]) // 26 ** i

        ans += chr(ord("a") + v)

        x -= (v + 1) * (26 ** i)



ans += chr(ord("a") + x % 26)

print(ans)

    
x = int(eval(input()))

ans = ""

while x > 0:

    x -= 1

    ans += chr(ord("a") + x % 26)

    x //= 26

print((ans[::-1]))
N = int(eval(input()))
cnt = [0] + [26**i for i in range(1, 11)]
for i in range(10):
    cnt[i + 1] += cnt[i]
ans = ""
x = N - 1
for i in reversed(list(range(1, 11))):
    if x >= cnt[i]:
        v = (x - cnt[i]) // 26**i
        ans += chr(ord("a") + v)
        x -= (v + 1) * (26**i)
ans += chr(ord("a") + x % 26)
print(ans)

x = int(eval(input()))
ans = ""
while x > 0:
    x -= 1
    ans += chr(ord("a") + x % 26)
    x //= 26
print((ans[::-1]))

-N = int(eval(input())) -cnt = [0] + [26**i for i in range(1, 11)] -for i in range(10): -    cnt[i + 1] += cnt[i] +x = int(eval(input())) -x = N - 1 -for i in reversed(list(range(1, 11))): -    if x >= cnt[i]: -        v = (x - cnt[i]) // 26**i -        ans += chr(ord("a") + v) -        x -= (v + 1) * (26**i) -ans += chr(ord("a") + x % 26) -print(ans) +while x > 0: +    x -= 1 +    ans += chr(ord("a") + x % 26) +    x //= 26 +print((ans[::-1]))