n = int(eval(input()))



#26進数

dim = []

while n>0:

    q,r = divmod(n-1, 26)

    dim.append(r)

    n=q



import string

dic = {i:l for i,l in enumerate(string.ascii_lowercase)}



print((''.join([dic[d] for d in reversed(dim)])))

    
import string

n = int(eval(input()))



#26進数

ans = []

while n>0:

    q,r = divmod(n-1, 26)

    ans.append(r)

    n=q



print((''.join([string.ascii_lowercase[bit] for bit in reversed(ans)])))

n = int(eval(input()))
# 26進数
dim = []
while n > 0:
    q, r = divmod(n - 1, 26)
    dim.append(r)
    n = q
import string

dic = {i: l for i, l in enumerate(string.ascii_lowercase)}
print(("".join([dic[d] for d in reversed(dim)])))

import string

n = int(eval(input()))
# 26進数
ans = []
while n > 0:
    q, r = divmod(n - 1, 26)
    ans.append(r)
    n = q
print(("".join([string.ascii_lowercase[bit] for bit in reversed(ans)])))

+import string + -dim = [] +ans = [] -    dim.append(r) +    ans.append(r) -import string - -dic = {i: l for i, l in enumerate(string.ascii_lowercase)} -print(("".join([dic[d] for d in reversed(dim)]))) +print(("".join([string.ascii_lowercase[bit] for bit in reversed(ans)])))