n = int(eval(input()))-1

q = []

while n >= 0:

    q.insert(0,n % 26)

    n = n // 26-1

ans = ''

for i in q:

    ans += chr(ord('a') + i)

print(ans)
ini = lambda : int(eval(input()))

inm = lambda : list(map(int,input().split()))

inl = lambda : list(map(int,input().split()))

gcd = lambda x,y : gcd(y,x%y) if x%y else y

n = ini()

b = ''

while n > 0:

        n -= 1

        b += chr(ord('a') + n%26)

        n = n//26

print((b[::-1]))

n = int(eval(input())) - 1
q = []
while n >= 0:
    q.insert(0, n % 26)
    n = n // 26 - 1
ans = ""
for i in q:
    ans += chr(ord("a") + i)
print(ans)

ini = lambda: int(eval(input()))
inm = lambda: list(map(int, input().split()))
inl = lambda: list(map(int, input().split()))
gcd = lambda x, y: gcd(y, x % y) if x % y else y
n = ini()
b = ""
while n > 0:
    n -= 1
    b += chr(ord("a") + n % 26)
    n = n // 26
print((b[::-1]))

-n = int(eval(input())) - 1 -q = [] -while n >= 0: -    q.insert(0, n % 26) -    n = n // 26 - 1 -ans = "" -for i in q: -    ans += chr(ord("a") + i) -print(ans) +ini = lambda: int(eval(input())) +inm = lambda: list(map(int, input().split())) +inl = lambda: list(map(int, input().split())) +gcd = lambda x, y: gcd(y, x % y) if x % y else y +n = ini() +b = "" +while n > 0: +    n -= 1 +    b += chr(ord("a") + n % 26) +    n = n // 26 +print((b[::-1]))