n=int(eval(input()))

a=[]

while n:

    a+=n%26,

    n//=26

a=a[::-1]

for i in range(len(a)-1,0,-1):

    if a[i]<1:

        a[i]+=26

        a[i-1]-=1

print((''.join(chr(c+96)for c in a[not a[0]:])))
n=int(input())

a=[]

while n:

    a+=n%26+96,

    n//=26

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

    f=a[i]<97

    a[i]+=f*26

    a[i+1]-=f

print(*map(chr,a[::-1][a[-1]<97:]),sep='')

n = int(eval(input()))
a = []
while n:
    a += (n % 26,)
    n //= 26
a = a[::-1]
for i in range(len(a) - 1, 0, -1):
    if a[i] < 1:
        a[i] += 26
        a[i - 1] -= 1
print(("".join(chr(c + 96) for c in a[not a[0] :])))

n = int(input())
a = []
while n:
    a += (n % 26 + 96,)
    n //= 26
for i in range(len(a) - 1):
    f = a[i] < 97
    a[i] += f * 26
    a[i + 1] -= f
print(*map(chr, a[::-1][a[-1] < 97 :]), sep="")

-n = int(eval(input())) +n = int(input()) -    a += (n % 26,) +    a += (n % 26 + 96,) -a = a[::-1] -for i in range(len(a) - 1, 0, -1): -    if a[i] < 1: -        a[i] += 26 -        a[i - 1] -= 1 -print(("".join(chr(c + 96) for c in a[not a[0] :]))) +for i in range(len(a) - 1): +    f = a[i] < 97 +    a[i] += f * 26 +    a[i + 1] -= f +print(*map(chr, a[::-1][a[-1] < 97 :]), sep="")