N = int(eval(input()))



ans = ""



while N > 0:

    N -= 1

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

    N //= 26

print((ans[::-1]))
N = int(eval(input()))

s = ""

while N != 0:

    N -= 1

    r = N % 26

    s += chr(ord('a') + r)

    N //= 26



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

N = int(eval(input()))
s = ""
while N != 0:
    N -= 1
    r = N % 26
    s += chr(ord("a") + r)
    N //= 26
print((s[::-1]))

-ans = "" -while N > 0: +s = "" +while N != 0: -    ans += chr(ord("a") + N % 26) +    r = N % 26 +    s += chr(ord("a") + r) -print((ans[::-1])) +print((s[::-1]))