from sys import stdin

nii=lambda:list(map(int,stdin.readline().split()))

lnii=lambda:list(map(int,stdin.readline().split()))



abc='abcdefghijklmnopqrstuvwxyz'



n=int(eval(input()))



ans=''

while n!=0:

  t_ans=n%26

  ans+=str(abc[t_ans-1])



  if abc[t_ans-1]=='z':

    n-=1



  n//=26



print((ans[::-1]))
n=int(eval(input()))



abc='abcdefghijklmnopqrstuvwxyz'



ans=''

while n!=0:

  q=n%26

  ans+=abc[q-1]



  if q==0:

    n-=1



  n//=26



print((ans[::-1]))
from sys import stdin

nii = lambda: list(map(int, stdin.readline().split()))
lnii = lambda: list(map(int, stdin.readline().split()))
abc = "abcdefghijklmnopqrstuvwxyz"
n = int(eval(input()))
ans = ""
while n != 0:
    t_ans = n % 26
    ans += str(abc[t_ans - 1])
    if abc[t_ans - 1] == "z":
        n -= 1
    n //= 26
print((ans[::-1]))

n = int(eval(input()))
abc = "abcdefghijklmnopqrstuvwxyz"
ans = ""
while n != 0:
    q = n % 26
    ans += abc[q - 1]
    if q == 0:
        n -= 1
    n //= 26
print((ans[::-1]))

-from sys import stdin - -nii = lambda: list(map(int, stdin.readline().split())) -lnii = lambda: list(map(int, stdin.readline().split())) +n = int(eval(input())) -n = int(eval(input())) -    t_ans = n % 26 -    ans += str(abc[t_ans - 1]) -    if abc[t_ans - 1] == "z": +    q = n % 26 +    ans += abc[q - 1] +    if q == 0: