N = int(eval(input()))



res = ""

while N > 0:

    r = (N - 1) % 26

    res = chr(r + 97) + res

    N -= r + 1

    N //= 26

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



res = ""

while N > 0:

    N -= 1

    r = N % 26

    res = chr(r + 97) + res

    N //= 26

print(res)
N = int(eval(input()))
res = ""
while N > 0:
    r = (N - 1) % 26
    res = chr(r + 97) + res
    N -= r + 1
    N //= 26
print(res)

N = int(eval(input()))
res = ""
while N > 0:
    N -= 1
    r = N % 26
    res = chr(r + 97) + res
    N //= 26
print(res)

-    r = (N - 1) % 26 +    N -= 1 +    r = N % 26 -    N -= r + 1