n=int(eval(input()))



alphabet=[None] + [chr(i) for i in range(97,97+26)]



rest=[]

while n!=0:

    rest.append(n%26)

    n = n // 26

rest.reverse()



for i in range(len(rest)-1):

    if rest[len(rest)-1-i]<=0:

        rest[len(rest)-1-i]+=26

        rest[len(rest)-2-i]-=1

if rest[0]<=0:

    rest=rest[1:]



ans=''

for i in range(len(rest)):

    ans+=alphabet[rest[i]]

print(ans)

n=int(eval(input()))



alphabet=[chr(i) for i in range(97,97+26)]



ans=''

while n>0:

    n-=1

    ans+=alphabet[n%26]

    n //= 26

print((ans[::-1]))
n = int(eval(input()))
alphabet = [None] + [chr(i) for i in range(97, 97 + 26)]
rest = []
while n != 0:
    rest.append(n % 26)
    n = n // 26
rest.reverse()
for i in range(len(rest) - 1):
    if rest[len(rest) - 1 - i] <= 0:
        rest[len(rest) - 1 - i] += 26
        rest[len(rest) - 2 - i] -= 1
if rest[0] <= 0:
    rest = rest[1:]
ans = ""
for i in range(len(rest)):
    ans += alphabet[rest[i]]
print(ans)

n = int(eval(input()))
alphabet = [chr(i) for i in range(97, 97 + 26)]
ans = ""
while n > 0:
    n -= 1
    ans += alphabet[n % 26]
    n //= 26
print((ans[::-1]))

-alphabet = [None] + [chr(i) for i in range(97, 97 + 26)] -rest = [] -while n != 0: -    rest.append(n % 26) -    n = n // 26 -rest.reverse() -for i in range(len(rest) - 1): -    if rest[len(rest) - 1 - i] <= 0: -        rest[len(rest) - 1 - i] += 26 -        rest[len(rest) - 2 - i] -= 1 -if rest[0] <= 0: -    rest = rest[1:] +alphabet = [chr(i) for i in range(97, 97 + 26)] -for i in range(len(rest)): -    ans += alphabet[rest[i]] -print(ans) +while n > 0: +    n -= 1 +    ans += alphabet[n % 26] +    n //= 26 +print((ans[::-1]))