al = ["Q"] + [chr(ord('a') + i) for i in range(26)]

n = int(eval(input()))

s = ""

while n:

    if n % 26:

        a = n % 26

        n //= 26

    else:

        a = 26

        n //= 26

        n -= 1

    s += al[a]

print((s[::-1]))
al = [chr(ord('a') + i) for i in range(26)]

n = int(eval(input()))

s = ""

while n:

    s += al[n % 26 - 1]

    n = (n - 1) // 26

print((s[::-1]))
al = ["Q"] + [chr(ord("a") + i) for i in range(26)]
n = int(eval(input()))
s = ""
while n:
    if n % 26:
        a = n % 26
        n //= 26
    else:
        a = 26
        n //= 26
        n -= 1
    s += al[a]
print((s[::-1]))

al = [chr(ord("a") + i) for i in range(26)]
n = int(eval(input()))
s = ""
while n:
    s += al[n % 26 - 1]
    n = (n - 1) // 26
print((s[::-1]))

-al = ["Q"] + [chr(ord("a") + i) for i in range(26)] +al = [chr(ord("a") + i) for i in range(26)] -    if n % 26: -        a = n % 26 -        n //= 26 -    else: -        a = 26 -        n //= 26 -        n -= 1 -    s += al[a] +    s += al[n % 26 - 1] +    n = (n - 1) // 26