N = int(eval(input()))

ans = ""



while N>0:

  N -= 1

  num = N%26

  ans += chr(ord("a")+num)

  N //= 26

  

print((ans[::-1]))
N = int(eval(input()))

ans = ""



while N > 0:

  N -= 1

  ans += chr(ord("a")+(N%26))

  N //= 26

  

print((ans[::-1]))
N = int(eval(input()))
ans = ""
while N > 0:
    N -= 1
    num = N % 26
    ans += chr(ord("a") + num)
    N //= 26
print((ans[::-1]))

N = int(eval(input()))
ans = ""
while N > 0:
    N -= 1
    ans += chr(ord("a") + (N % 26))
    N //= 26
print((ans[::-1]))

-    num = N % 26 -    ans += chr(ord("a") + num) +    ans += chr(ord("a") + (N % 26))