Buggy python submission (verdict: Runtime Error):
import string
import itertools
n = int(input())
s = n
l = list(string.ascii_lowercase)
count = 1
for i in range(1, 100):
    s -= 26 ** i
    if s <= 0:
        break
    else:
        count += 1
n_list = []
answer = []
for i in reversed(range(1, count+1)):
    number = n // 26 ** (i-1)
    n %= 26 ** (i-1)
    n_list.append(number)
for i in n_list:
    answer.append(l[i-1])
print(''.join(answer))


Fixed submission:
import string
import itertools
n = int(input())
s = n
l = list(string.ascii_lowercase)
count = 1
for i in range(1, 100):
    s -= 26 ** i
    if s <= 0:
        break
    else:
        count += 1
n_list = []
answer = []
for i in reversed(range(1, count+1)):
    number = min(26, n // 26 ** (i-1))
    n -= number * 26 ** (i-1)
    n_list.append(number)
n_l = []
for i, x in  enumerate(reversed(n_list)):
    if x <= 0:
        n_l.append(x + 26)
        n_list[-(i+2)] -= 1
    else:
        n_l.append(x)
for i in reversed(n_l):
    answer.append(l[i-1])
print(''.join(answer))

Buggy python submission (verdict: Runtime Error):
import string
import itertools
n = int(input())
l = list(string.ascii_lowercase)
count = 1
for i in range(1, 100):
    n -= 26 ** i
    if n <= 0:
        break
    else:
        count += 1
n_list = []
answer = []
for i in reversed(range(count)):
    number = n // 26 ** i
    n %= 26 ** i
    n_list.append(number)
for i in n_list:
    answer.append(l[i-1])
print(''.join(answer))


Fixed submission:
import string
import itertools
n = int(input())
s = n
l = list(string.ascii_lowercase)
count = 1
for i in range(1, 100):
    s -= 26 ** i
    if s <= 0:
        break
    else:
        count += 1
n_list = []
answer = []
for i in reversed(range(1, count+1)):
    number = min(26, n // 26 ** (i-1))
    n -= number * 26 ** (i-1)
    n_list.append(number)
n_l = []
for i, x in  enumerate(reversed(n_list)):
    if x <= 0:
        n_l.append(x + 26)
        n_list[-(i+2)] -= 1
    else:
        n_l.append(x)
for i in reversed(n_l):
    answer.append(l[i-1])
print(''.join(answer))

Buggy python submission (verdict: Runtime Error):
import string
import itertools
n = int(input())
l = list(string.ascii_lowercase)
count = 1
for i in range(1, 100):
    n -= 26 ** i
    if n <= 0:
        break
    else:
        count += 1
n_list = []
answer = []
for i in reversed(range(count)):
    number = n // 26 ** i
    n %= 26 ** i
    n_list.append(number)
for i in n_list:
    answer.append(l[i-1])
print(''.join(answer))


Fixed submission:
import string
import itertools
n = int(input())
s = n
l = list(string.ascii_lowercase)
count = 1
for i in range(1, 100):
    s -= 26 ** i
    if s <= 0:
        break
    else:
        count += 1
n_list = []
answer = []
for i in reversed(range(1, count+1)):
    number = min(26, n // 26 ** (i-1))
    n -= number * 26 ** (i-1)
    n_list.append(number)
n_l = []
for i, x in  enumerate(reversed(n_list)):
    if x <= 0:
        n_l.append(x + 26)
        n_list[-(i+2)] -= 1
    else:
        n_l.append(x)
for i in reversed(n_l):
    answer.append(l[i-1])
print(''.join(answer))

Buggy python submission (verdict: Runtime Error):
import string
import itertools
n = int(input())
l = list(string.ascii_lowercase)
l.insert(0, 0)

amari = []
while n != 0:
    amari.append(n % 26)
    n = n // 26
amari.reverse()
answer_list = []
for i in amari:
    if type(i) == int:
        answer_list.append(l[i])
ans = ''.join(answer_list)
print(ans)

Fixed submission:
import string
import itertools
n = int(input())
s = n
l = list(string.ascii_lowercase)
count = 1
for i in range(1, 100):
    s -= 26 ** i
    if s <= 0:
        break
    else:
        count += 1
n_list = []
answer = []
for i in reversed(range(1, count+1)):
    number = min(26, n // 26 ** (i-1))
    n -= number * 26 ** (i-1)
    n_list.append(number)
n_l = []
for i, x in  enumerate(reversed(n_list)):
    if x <= 0:
        n_l.append(x + 26)
        n_list[-(i+2)] -= 1
    else:
        n_l.append(x)
for i in reversed(n_l):
    answer.append(l[i-1])
print(''.join(answer))