N, ans = int(eval(input())), []

while N > 0:

    N = N - 1

    ans.append(chr(N % 26 + ord('a')))

    N = N // 26

print((''.join(ans[::-1])))

N, ans = int(eval(input())), ''

while N > 0:

    N = N - 1

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

    N //= 26

print((ans[::-1]))

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

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

-N, ans = int(eval(input())), [] +N, ans = int(eval(input())), "" -    ans.append(chr(N % 26 + ord("a"))) -    N = N // 26 -print(("".join(ans[::-1]))) +    ans += chr(N % 26 + ord("a")) +    N //= 26 +print((ans[::-1]))