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 -= 1

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

    N //= 26

print((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 -= 1
    ans += chr(N % 26 + ord("a"))
    N //= 26
print((ans[::-1]))

-    N = N - 1 +    N -= 1