alp = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']



y = int(eval(input()))



ans = []

while y > 26:

    res = y%26

    if res == 0:

        ans.append(25)

        y = y//26 - 1

    else:

        ans.append(y%26 - 1)

        y = y // 26

ans.append(y - 1)

ans = ans[::-1]

S = ''

for i in range(len(ans)):

    S += alp[ans[i]]

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

alp = [chr(i) for i in range(ord('a'), ord('z')+1)]

ans = []



while N > 0:

    res = N % 26

    ans.append(alp[res - 1])

    N //= 26

    if res == 0:

        N -= 1



ans = ans[::-1]

print((''.join(ans)))
alp = [
    "a",
    "b",
    "c",
    "d",
    "e",
    "f",
    "g",
    "h",
    "i",
    "j",
    "k",
    "l",
    "m",
    "n",
    "o",
    "p",
    "q",
    "r",
    "s",
    "t",
    "u",
    "v",
    "w",
    "x",
    "y",
    "z",
]
y = int(eval(input()))
ans = []
while y > 26:
    res = y % 26
    if res == 0:
        ans.append(25)
        y = y // 26 - 1
    else:
        ans.append(y % 26 - 1)
        y = y // 26
ans.append(y - 1)
ans = ans[::-1]
S = ""
for i in range(len(ans)):
    S += alp[ans[i]]
print(S)

N = int(eval(input()))
alp = [chr(i) for i in range(ord("a"), ord("z") + 1)]
ans = []
while N > 0:
    res = N % 26
    ans.append(alp[res - 1])
    N //= 26
    if res == 0:
        N -= 1
ans = ans[::-1]
print(("".join(ans)))

-alp = [ -    "a", -    "b", -    "c", -    "d", -    "e", -    "f", -    "g", -    "h", -    "i", -    "j", -    "k", -    "l", -    "m", -    "n", -    "o", -    "p", -    "q", -    "r", -    "s", -    "t", -    "u", -    "v", -    "w", -    "x", -    "y", -    "z", -] -y = int(eval(input())) +N = int(eval(input())) +alp = [chr(i) for i in range(ord("a"), ord("z") + 1)] -while y > 26: -    res = y % 26 +while N > 0: +    res = N % 26 +    ans.append(alp[res - 1]) +    N //= 26 -        ans.append(25) -        y = y // 26 - 1 -    else: -        ans.append(y % 26 - 1) -        y = y // 26 -ans.append(y - 1) +        N -= 1 -S = "" -for i in range(len(ans)): -    S += alp[ans[i]] -print(S) +print(("".join(ans)))