def num2alpha(num):

    if num<=26:

        return chr(64+num)

    elif num%26==0:

        return num2alpha(num//26-1)+chr(90)

    else:

        return num2alpha(num//26)+chr(64+num%26)

n = int(eval(input()))

print((num2alpha(n).lower()))
def num2alpha(num):

    if num<=26:

        return chr(64+num)

    elif num%26==0:#例　26*12 = 26^1 * 11 + 26^0 * 26に変換する

        return num2alpha(num//26-1)+chr(90)

    else:

        return num2alpha(num//26)+chr(64+num%26)

n = int(eval(input()))

print((num2alpha(n).lower()))

def num2alpha(num):
    if num <= 26:
        return chr(64 + num)
    elif num % 26 == 0:
        return num2alpha(num // 26 - 1) + chr(90)
    else:
        return num2alpha(num // 26) + chr(64 + num % 26)


n = int(eval(input()))
print((num2alpha(n).lower()))

def num2alpha(num):
    if num <= 26:
        return chr(64 + num)
    elif num % 26 == 0:  # 例　26*12 = 26^1 * 11 + 26^0 * 26に変換する
        return num2alpha(num // 26 - 1) + chr(90)
    else:
        return num2alpha(num // 26) + chr(64 + num % 26)


n = int(eval(input()))
print((num2alpha(n).lower()))

-    elif num % 26 == 0: +    elif num % 26 == 0:  # 例　26*12 = 26^1 * 11 + 26^0 * 26に変換する