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(int(eval(input()))).lower()))
N = int(eval(input()))

S = ""



while 0<N:

  N-=1

  S+=chr(97+N%26)

  N//=26



print((S[::-1]))
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(int(eval(input()))).lower()))

N = int(eval(input()))
S = ""
while 0 < N:
    N -= 1
    S += chr(97 + N % 26)
    N //= 26
print((S[::-1]))

-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(int(eval(input()))).lower())) +N = int(eval(input())) +S = "" +while 0 < N: +    N -= 1 +    S += chr(97 + N % 26) +    N //= 26 +print((S[::-1]))