s = input()

n = int(s)



def main(n):

	d = 1

	n -= 1

	while n - 26**d >= 0:

		n -= 26**d

		d += 1

	ret = ''

	for i in range(d):

		ret += chr((n%26)+ord('a'))

		n //= 26

	return ret[::-1]



print(main(n))

a = int(eval(input()))

s = []

ret = ['z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',

       'w', 'x', 'y', 'z',

       ]

while a > 0:

    a -= 1

    shang = int(a / 26)

    yushu = int(a % 26)

    # print(shang, yushu)

    s.append(yushu+1)

    a = shang



s.reverse()

# print(s)

v = ''

for i in range(len(s)):

    v += ret[s[i]]

print(v)

s = input()
n = int(s)


def main(n):
    d = 1
    n -= 1
    while n - 26**d >= 0:
        n -= 26**d
        d += 1
    ret = ""
    for i in range(d):
        ret += chr((n % 26) + ord("a"))
        n //= 26
    return ret[::-1]


print(main(n))

a = int(eval(input()))
s = []
ret = [
    "z",
    "a",
    "b",
    "c",
    "d",
    "e",
    "f",
    "g",
    "h",
    "i",
    "j",
    "k",
    "l",
    "m",
    "n",
    "o",
    "p",
    "q",
    "r",
    "s",
    "t",
    "u",
    "v",
    "w",
    "x",
    "y",
    "z",
]
while a > 0:
    a -= 1
    shang = int(a / 26)
    yushu = int(a % 26)
    # print(shang, yushu)
    s.append(yushu + 1)
    a = shang
s.reverse()
# print(s)
v = ""
for i in range(len(s)):
    v += ret[s[i]]
print(v)

-s = input() -n = int(s) - - -def main(n): -    d = 1 -    n -= 1 -    while n - 26**d >= 0: -        n -= 26**d -        d += 1 -    ret = "" -    for i in range(d): -        ret += chr((n % 26) + ord("a")) -        n //= 26 -    return ret[::-1] - - -print(main(n)) +a = int(eval(input())) +s = [] +ret = [ +    "z", +    "a", +    "b", +    "c", +    "d", +    "e", +    "f", +    "g", +    "h", +    "i", +    "j", +    "k", +    "l", +    "m", +    "n", +    "o", +    "p", +    "q", +    "r", +    "s", +    "t", +    "u", +    "v", +    "w", +    "x", +    "y", +    "z", +] +while a > 0: +    a -= 1 +    shang = int(a / 26) +    yushu = int(a % 26) +    # print(shang, yushu) +    s.append(yushu + 1) +    a = shang +s.reverse() +# print(s) +v = "" +for i in range(len(s)): +    v += ret[s[i]] +print(v)