N = int(eval(input()))

res = []

while N:

    r = N % 26

    if r == 0:

        r = 26

    res.append(chr(r + 96))

    if r == 26:

        N -= 1

    N //= 26

res.reverse()

print((''.join(res)))
N = int(eval(input()))

res = []

while N:

    N -= 1

    N, r = divmod(N, 26)

    res.append(chr(r + ord('a')))

res.reverse()

print((''.join(res)))

N = int(eval(input()))
res = []
while N:
    r = N % 26
    if r == 0:
        r = 26
    res.append(chr(r + 96))
    if r == 26:
        N -= 1
    N //= 26
res.reverse()
print(("".join(res)))

N = int(eval(input()))
res = []
while N:
    N -= 1
    N, r = divmod(N, 26)
    res.append(chr(r + ord("a")))
res.reverse()
print(("".join(res)))

-    r = N % 26 -    if r == 0: -        r = 26 -    res.append(chr(r + 96)) -    if r == 26: -        N -= 1 -    N //= 26 +    N -= 1 +    N, r = divmod(N, 26) +    res.append(chr(r + ord("a")))