n = int(eval(input()))

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)

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

def sinsu(num):

  if num <= 26:

    return chr(64+num)

  elif num%26 == 0:

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

  else:

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

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


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)


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

n = int(eval(input()))


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


print((sinsu(n).lower()))

-def num2alpha(num): +def sinsu(num): -        return num2alpha(num // 26 - 1) + chr(90) +        return sinsu(num // 26 - 1) + chr(90) -        return num2alpha(num // 26) + chr(64 + num % 26) +        return sinsu(num // 26) + chr(64 + num % 26) -print((num2alpha(n).lower())) +print((sinsu(n).lower()))