n = int(eval(input()))

cha = "abcdefghijklmnopqrstuvwxyz"

ans = ""

while n>=1:

    ans += cha[((n-1)%26)]

    n=(n-1)//26

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

cha = "abcdefghijklmnopqrstuvwxyz"

ans = []

while n >= 1:

    mod = (n - 1) % 26

    ans.append(mod)

    n = (n - 1) // 26

    

ans_s = ''

for tmp in reversed(ans):

    ans_s += cha[tmp]

print(ans_s)
n = int(eval(input()))
cha = "abcdefghijklmnopqrstuvwxyz"
ans = ""
while n >= 1:
    ans += cha[((n - 1) % 26)]
    n = (n - 1) // 26
print((ans[::-1]))

n = int(eval(input()))
cha = "abcdefghijklmnopqrstuvwxyz"
ans = []
while n >= 1:
    mod = (n - 1) % 26
    ans.append(mod)
    n = (n - 1) // 26
ans_s = ""
for tmp in reversed(ans):
    ans_s += cha[tmp]
print(ans_s)

-ans = "" +ans = [] -    ans += cha[((n - 1) % 26)] +    mod = (n - 1) % 26 +    ans.append(mod) -print((ans[::-1])) +ans_s = "" +for tmp in reversed(ans): +    ans_s += cha[tmp] +print(ans_s)