n = int(eval(input()))

res = ""

while n:

    n -= 1

    res += chr(ord('a') + n % 26)

    n //= 26

    # print(n)

# print(res)

print((res[::-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()))
res = ""
while n:
    n -= 1
    res += chr(ord("a") + n % 26)
    n //= 26
    # print(n)
# print(res)
print((res[::-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())) -res = "" -while n: -    n -= 1 -    res += chr(ord("a") + n % 26) -    n //= 26 -    # print(n) -# print(res) -print((res[::-1])) +N = int(eval(input())) +ans = "" +while N > 0: +    N -= 1 +    ans += chr(ord("a") + N % 26) +    N //= 26 +print((ans[::-1]))