n = int(eval(input()))

kugiri = [0,26,702,18278,475254,12356630,321272406,8353082582,217180147158,5646683826134,146813779479510,3817158266467286]

ans = ""



for i in range(len(kugiri)):

    if n <= kugiri[i]:

        keta = i

        break

        

n -= kugiri[i-1]



for i in range(keta):

    moji = -(-n // 26**(keta-1))

    ans += chr(moji+96)

    n -= (moji-1) * 26**(keta-1)

    keta -= 1

    

print(ans)
N = int(eval(input()))

ans = ''



for i in range(1, 99):

    if N <= 26 ** i:

        N -= 1

        

        for j in range(i):

            ans += chr(ord('a') + N % 26)

            N //= 26

            

        break

        

    else:

        N -= 26 ** i



print((ans[::-1]))
n = int(eval(input()))
kugiri = [
    0,
    26,
    702,
    18278,
    475254,
    12356630,
    321272406,
    8353082582,
    217180147158,
    5646683826134,
    146813779479510,
    3817158266467286,
]
ans = ""
for i in range(len(kugiri)):
    if n <= kugiri[i]:
        keta = i
        break
n -= kugiri[i - 1]
for i in range(keta):
    moji = -(-n // 26 ** (keta - 1))
    ans += chr(moji + 96)
    n -= (moji - 1) * 26 ** (keta - 1)
    keta -= 1
print(ans)

N = int(eval(input()))
ans = ""
for i in range(1, 99):
    if N <= 26**i:
        N -= 1
        for j in range(i):
            ans += chr(ord("a") + N % 26)
            N //= 26
        break
    else:
        N -= 26**i
print((ans[::-1]))

-n = int(eval(input())) -kugiri = [ -    0, -    26, -    702, -    18278, -    475254, -    12356630, -    321272406, -    8353082582, -    217180147158, -    5646683826134, -    146813779479510, -    3817158266467286, -] +N = int(eval(input())) -for i in range(len(kugiri)): -    if n <= kugiri[i]: -        keta = i +for i in range(1, 99): +    if N <= 26**i: +        N -= 1 +        for j in range(i): +            ans += chr(ord("a") + N % 26) +            N //= 26 -n -= kugiri[i - 1] -for i in range(keta): -    moji = -(-n // 26 ** (keta - 1)) -    ans += chr(moji + 96) -    n -= (moji - 1) * 26 ** (keta - 1) -    keta -= 1 -print(ans) +    else: +        N -= 26**i +print((ans[::-1]))