N=int(eval(input()))



ans=[]

a=ord("a")

tmp=0

while N>0:

    tmp+=1

    if tmp==1:

        chrr=N%26-1

        if chrr<0:

            chrr+=26

        ans.append(chr(a+chrr))

    else:

        chrr=((N-1)//(26**(tmp-1)))%26

        if chrr<0:

            chrr+=26

        ans.append(chr(a+chrr))

    N-=26**tmp



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



ans=[]

a=ord("a")

while N>0:

    N-=1

    chrr=N%26

    ans.append(chr(a+chrr))

    N//=26





print(("".join(ans[::-1])))

N = int(eval(input()))
ans = []
a = ord("a")
tmp = 0
while N > 0:
    tmp += 1
    if tmp == 1:
        chrr = N % 26 - 1
        if chrr < 0:
            chrr += 26
        ans.append(chr(a + chrr))
    else:
        chrr = ((N - 1) // (26 ** (tmp - 1))) % 26
        if chrr < 0:
            chrr += 26
        ans.append(chr(a + chrr))
    N -= 26**tmp
print(("".join(ans[::-1])))

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

-tmp = 0 -    tmp += 1 -    if tmp == 1: -        chrr = N % 26 - 1 -        if chrr < 0: -            chrr += 26 -        ans.append(chr(a + chrr)) -    else: -        chrr = ((N - 1) // (26 ** (tmp - 1))) % 26 -        if chrr < 0: -            chrr += 26 -        ans.append(chr(a + chrr)) -    N -= 26**tmp +    N -= 1 +    chrr = N % 26 +    ans.append(chr(a + chrr)) +    N //= 26