alphabet='abcdefghijklmnopqrstuvwxyz'

N=int(eval(input()))

r=[]

while N>26:    

  x=N%26

  N=N//26

  if x==0:

    N-=1

    x=26

  r.append(x)

r.append(N)

name=[alphabet[i-1] for i in r]

name.reverse()

name=''.join(name)

print(name)
alphabet='abcdefghijklmnopqrstuvwxyz'

N=int(eval(input()))

name=''

while N>0:

  N-=1

  name+=alphabet[N%26]

  N//=26

print((name[::-1]))
alphabet = "abcdefghijklmnopqrstuvwxyz"
N = int(eval(input()))
r = []
while N > 26:
    x = N % 26
    N = N // 26
    if x == 0:
        N -= 1
        x = 26
    r.append(x)
r.append(N)
name = [alphabet[i - 1] for i in r]
name.reverse()
name = "".join(name)
print(name)

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

-r = [] -while N > 26: -    x = N % 26 -    N = N // 26 -    if x == 0: -        N -= 1 -        x = 26 -    r.append(x) -r.append(N) -name = [alphabet[i - 1] for i in r] -name.reverse() -name = "".join(name) -print(name) +name = "" +while N > 0: +    N -= 1 +    name += alphabet[N % 26] +    N //= 26 +print((name[::-1]))