N = int(eval(input()))

d = "abcdefghijklmnopqrstuvwxyz"

ans = ""

N -= 1



while(N >= 0):

    ans += d[N % 26]

    N //= 26

    N -= 1

    

print((ans[::-1]))
def num2alpha(num):

    if num <= 26:  return chr(64 + num)

    elif num % 26 == 0:  return num2alpha(num // 26 - 1) + chr(90)

    return num2alpha(num // 26) + chr(64 + num % 26)



N = int(eval(input()))

ans = num2alpha(N).lower()

print(ans)
N = int(eval(input()))
d = "abcdefghijklmnopqrstuvwxyz"
ans = ""
N -= 1
while N >= 0:
    ans += d[N % 26]
    N //= 26
    N -= 1
print((ans[::-1]))

def num2alpha(num):
    if num <= 26:
        return chr(64 + num)
    elif num % 26 == 0:
        return num2alpha(num // 26 - 1) + chr(90)
    return num2alpha(num // 26) + chr(64 + num % 26)


N = int(eval(input()))
ans = num2alpha(N).lower()
print(ans)

+def num2alpha(num): +    if num <= 26: +        return chr(64 + num) +    elif num % 26 == 0: +        return num2alpha(num // 26 - 1) + chr(90) +    return num2alpha(num // 26) + chr(64 + num % 26) + + -d = "abcdefghijklmnopqrstuvwxyz" -ans = "" -N -= 1 -while N >= 0: -    ans += d[N % 26] -    N //= 26 -    N -= 1 -print((ans[::-1])) +ans = num2alpha(N).lower() +print(ans)