Problem:


Score : 300 points

Problem Statement

1000000000000001 dogs suddenly appeared under the roof of Roger's house, all of which he decided to keep. The dogs had been numbered 1 through 1000000000000001, but he gave them new names, as follows:

the dogs numbered 1,2,\cdots,26 were respectively given the names a, b, ..., z;

the dogs numbered 27,28,29,\cdots,701,702  were respectively given the names aa, ab, ac, ..., zy, zz;

the dogs numbered 703,704,705,\cdots,18277,18278  were respectively given the names aaa, aab, aac, ..., zzy, zzz;

the dogs numbered 18279,18280,18281,\cdots,475253,475254  were respectively given the names aaaa, aaab, aaac, ..., zzzy, zzzz;

the dogs numbered 475255,475256,\cdots  were respectively given the names aaaaa, aaaab, ...;

and so on.

To sum it up, the dogs numbered 1, 2, \cdots were respectively given the following names:

a, b, ..., z, aa, ab, ..., az, ba, bb, ..., bz, ..., za, zb, ..., zz, aaa, aab, ..., aaz, aba, abb, ..., abz, ..., zzz, aaaa, ...

Now, Roger asks you:

"What is the name for the dog numbered N?"

Constraints

N is an integer.

 1 \leq N \leq 1000000000000001

Input

Input is given from Standard Input in the following format:

N

Output

Print the answer to Roger's question as a string consisting of lowercase English letters.

Sample Input 1

2

Sample Output 1

b

Sample Input 2

27

Sample Output 2

aa

Sample Input 3

123456789

Sample Output 3

jjddja



Sample input:
2


Sample output:
b

Submission status: Runtime Error

Solution code:
import numpy as np
 
N = int(input())
N_if = N
alf = ['0','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
 
data = []
count = 1
while(1):
  N_if -= 26**count
  if N_if < 0:    
    break
  count +=1
  
N_if += 26**count
 
result = []
number = 1
y = 0
for i in range(count):
  result.append(number)
while(1):
  y +=1
  q, mod = divmod(N_if, 26)
  data.append(mod)
  if q<27 :
    if q==0:
      y +=1
      data.append(q)
      data.append(100)
      break
    else:
      y +=1
      data.append(q)
      break
  N_if = q
data_copy = data
answer = np.zeros(len(result),dtype = int)
print(len(data))
"""
if len(result) >y: 
  print('haro')
  new = list(np.zeros(len(result)-y,dtype = int))
  print(new)
  new.extend(data)
  print(new)
  data = new
print(len(result))
print(len(data))
"""
for i in range(len(result)):
  answer[i] = int(data[len(data)-i-1] + result[i])
print(answer)  

answer[len(answer)-1] = answer[len(answer)-1]-1
x = ''
if answer[0] >= 100:
  for i in range(len(answer)):
    x += alf[26]
    
else:
  for i in range(len(answer)):
    x += alf[answer[i]]
print(x)

Submission status: Runtime Error

Solution code:
import numpy as np
 
N = int(input())
N_if = N
alf = ['0','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
 
data = []
count = 1
while(1):
  N_if -= 26**count
  if N_if < 0:    
    break
  count +=1
  
N_if += 26**count
 
result = []
number = 1
y = 0
for i in range(count):
  result.append(number)
while(1):
  y +=1
  q, mod = divmod(N_if, 26)
  data.append(mod)
  if q<27 :
    if q==0:
      y +=1
      data.append(q)
      data.append(100)
      break
    else:
      y +=1
      data.append(q)
      break
  N_if = q
answer = np.zeros(len(result),dtype = int)

if len(result) >y: 
  new = np.zeros(len(result)-y,dtype = int)
  data = new+data
for i in range(len(result)):
  answer[i] = int(data[len(result)-i-1] + result[i])
answer[len(answer)-1] = answer[len(answer)-1]-1
x = ''
if answer[0] >= 100:
  for i in range(len(answer)):
    x += alf[26]
    
else:
  for i in range(len(answer)):
    x += alf[answer[i]]
print(x)

Submission status: Runtime Error

Solution code:
import numpy as np
 
N = int(input())
N_if = N
alf = ['0','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
 
data = []
count = 1
while(1):
  N_if -= 26**count
  if N_if < 0:    
    break
  count +=1
  
N_if += 26**count
 
result = []
number = 1
y = 0
for i in range(count):
  result.append(number)
while(1):
  y +=1
  q, mod = divmod(N_if, 26)
  data.append(mod)
  if q<27 :
    if q==0:
      y +=1
      data.append(q)
      data.append(100)
      break
    else:
      y +=1
      data.append(q)
      break
  N_if = q
answer = np.zeros(len(result),dtype = int)

if len(result) !=y: 
  new = np.zeros(len(result)-y,dtype = int)
  data = new+data
for i in range(len(result)):
  answer[i] = int(data[len(result)-i-1] + result[i])
answer[len(answer)-1] = answer[len(answer)-1]-1
x = ''
if answer[0] >= 100:
  for i in range(len(answer)):
    x += alf[26]
    
else:
  for i in range(len(answer)):
    x += alf[answer[i]]
print(x)

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
N_if = N
alf = ['0','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']

data = []
count = 1
while(1):
  N_if -= 26**count
  if N_if < 0:    
    break
  count +=1
  
N_if += 26**count

result = []
number = 1
for i in range(count):
  result.append(number)
while(1):
  q, mod = divmod(N_if, 26)
  data.append(mod)
  if q<27 :
    if q==0:
      data.append(q)
      data.append(100)
      break
    else:
      data.append(q)
      break
  N_if = q
answer = np.zeros(len(result),dtype = int)

for i in range(len(result)):
  answer[i] = int(data[len(result)-i-1] + result[i])

answer[len(answer)-1] = answer[len(answer)-1]-1
x = ''
if answer[0] >= 100:
  for i in range(len(answer)):
    x += alf[26]
    
else:
  for i in range(len(answer)):
    x += alf[answer[i]]
print(x)

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
N_if = N
alf = ['0','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']

data = []
count = 1
while(1):
  N_if -= 26**count
  if N_if < 0:
    #count += 1
    break
  count +=1
#print(count)   
N_if += 26**count

#print(N_if)

result = []
number = 1
for i in range(count):
  result.append(number)
  
#print(result)
while(1):
  q, mod = divmod(N_if, 26)
  data.append(mod)
  if q<27 :
    if q==0:
      data.append(q)
      data.append(100)
      break
    else:
      data.append(q)
      break
  N_if = q
answer = np.zeros(len(result),dtype = int)
#print(data)

for i in range(len(result)):
  answer[i] = int(data[len(result)-i-1] + result[i])
#print(answer)

answer[len(answer)-1] = answer[len(answer)-1]-1
#print(answer)
x = ''
if answer[0] >= 100:
  for i in range(len(answer)):
    x += alf[26]
    
else:
  for i in range(len(answer)):
    x += alf[answer[i]]
print(x)

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
N_if = N
alf = ['0','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']

data = []
count = 1
while(1):
  N_if -= 26**count
  if N_if < 0:
    #count += 1
    break
  count +=1
print(count)   
N_if += 26**count

print(N_if)

result = []
number = 1
for i in range(count):
  result.append(number)
  
print(result)
while(1):
  q, mod = divmod(N_if, 26)
  data.append(mod)
  if q<27 :
    if q==0:
      data.append(q)
      data.append(100)
      break
    else:
      data.append(q)
      break
  N_if = q
answer = np.zeros(len(result),dtype = int)
print(data)

for i in range(len(result)):
  answer[i] = int(data[len(result)-i-1] + result[i])
print(answer)

answer[len(answer)-1] = answer[len(answer)-1]-1
print(answer)
x = ''
if answer[0] >= 100:
  for i in range(len(answer)):
    x += alf[26]
    
else:
  for i in range(len(answer)):
    x += alf[answer[i]]
print(x)

Submission status: Runtime Error

Solution code:
N = int(input())
ans = ''
for i in range(1, 99):
 if N <= 26 ** i:
 N -= 1
 for j in range(i):
 ans += chr(ord('a') + N % 26)
 N //= 26
 break
 else:
 N -= 26 ** i
 print(ans[::-1]) # reversed

Submission status: Runtime Error

Solution code:
1 N = int(input())
2 ans = ''
3 while N > 0:
4 N -= 1
5 ans += chr(ord('a') + N % 26)
6 N //= 26
7 print(ans[::-1])

Submission status: Runtime Error

Solution code:
#C問題解説

n = int(input())  
chars = "Xabcdefghijklmnopqrstuvwxyz" # x番目がほしいときにchars[x-1]としたくないので、chars[0]は使わないことにします
n_rem = n  # 入力を直接操作すると、もし後々必要になったときに面倒なので
res = "" #最終的な答え格納用

while True:
    x = n_rem % 26
    # 余りが0、つまりzの場合は、26にします
    if x == 0:
        x = 26
    #1番目(a)~26番目(z)から対応する文字を取ってく
    res += chars[x] 
    
    #xを引いて26で割る
    n_rem -= x
    if n_rem == 0:
        break
    
    n_rem // = 26

# 0桁目が先頭で、最後の桁が末尾になっているので、反転させます
print(res[::-1])

Submission status: Runtime Error

Solution code:
n = int(input())
di = {}
li = []
ans = ""
for i in range(26):
    di[i+1] = chr(i+97)
while n != 0:
    li.append(di[n % 26])
    n = n // 26
for c in reversed(li):
    ans += c
print(ans)

Submission status: Runtime Error

Solution code:
# author:  Taichicchi
# created: 15.09.2020 21:11:53

import sys

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

Submission status: Runtime Error

Solution code:
N = int(input()) 
x = []

while N > 0:
    print("[{},{}".format(N,i))
    N, i = divmod(N, 26)
    print("{},{}]".format(N,i))
    if i == 0:
        x.append('z')
        N -= 1
    else:
        x.append(chr(i + 96))
print(''.join(x))

Submission status: Runtime Error

Solution code:
N = int(input())

while N > 0:
    N, i = divmod(N, 26)
    x = chr(i + 96)
    print(x、end='')

Submission status: Runtime Error

Solution code:
import math
alp = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'i', 'j', 'k', 'l', 'm',
       'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
n = int(input())
nums = []
ans = ""
while n >= 1:
    n -= 1
    ans += alp[(n % 26)]
    n = n // 26
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
N -= 1

lower = 'abcdefghijklmnopqrstuvwxyz'
lower_map = {}
for i, c in enumerate(lower):
    lower_map[i] = c

num_of_digits = 1
for i in range(1, 12):
    if 26 ** (i-1) <= N+1 < 26 ** i:
        num_of_digits = i
        break

# TODO: デバグ後は文字列の連結にする
# result = []
result = ""

for i in range(num_of_digits, 0, -1):
    digit = i - 1
    for j in range(0, 26):
        if (26 ** digit) * j <= N < (26 ** digit) * (j+1):
            if digit == 0:
                result += lower_map[j]
            else:
                result += lower_map[j-1]
            N -= (26 ** digit) * j
            break

print(result)

Submission status: Runtime Error

Solution code:
	a_list = [chr(ord('a') + i) for i in range(26)]
n = int(input())

l_list = []
ans = ''
while n > 0:
    
    if n % 26 == 0:
        l_list.append(25)
        n = n // 26 - 1
    else:
        l_list.append(n%26)
        n = n // 26
l_list = l_list[::-1]
for i in l_list:
    ans += a_list[i]
print(ans)

Submission status: Runtime Error

Solution code:
"""
手順
1. 必要になる桁数を求め，アルファベットの順番を保存するリスト「ans」を作成する
2. 
"""


N = int(input())  # 変換したい10進数の値
K = 26  # 進数

al = [chr(i) for i in range(97, 97+K)]


def change(N):
    # 手順１の実装
    keta = 0
    # 桁が切り替わる時は26のi乗の時ではなく26のi乗にそれまでの数値を足したものである
    # tmpはi-1乗までの数値を記録する変数として使用
    tmp = 0
    for i in range(10**9):
        if N < K**i + tmp:
            keta = i
            break
        tmp += K**i
    ans = [0] * keta  # 桁数の配列を準備する
    print(tmp)
    # print(ans)  # デバッグ用

    # 手順2の実装
    check = 0
    for i in range(1, keta+1):
        j = N // (K ** (keta - i))
        print(j, N - (j * (K ** (keta - i))))
        if i != keta and N - (j * (K ** (keta - i))) < tmp:
            j -= 1
        if j == 27:
            j -= 1
        N -= j * (K ** (keta - i))
        tmp -= K**(keta - i)
        ans[check] = j
        check += 1
    # print(ans)
    return ans


for i in change(N):
    print(al[i-1], end='')

Submission status: Runtime Error

Solution code:
"""
手順
1. 必要になる桁数を求め，アルファベットの順番を保存するリスト「ans」を作成する
2. 
"""


N = int(input())  # 変換したい10進数の値
K = 26  # 進数

al = [chr(i) for i in range(97, 97+K)]


def change(N):
    # 手順１の実装（元のプログラムから手を入れてます）
    keta = 0
    # 桁が切り替わる時は26のi乗の時ではなく26のi乗にそれまでの数値を足したものである
    # tmpはi-1乗までの数値を記録する変数として使用
    tmp = 0
    for i in range(10**9):
        if N < K**i + tmp:
            keta = i
            break
        tmp += K**i
    ans = [0] * keta  # 桁数の配列を準備する
    # print(ans)  # デバッグ用

    # 手順2の実装
    check = 0
    for i in range(1, keta+1):
        j = N // (K ** (keta - i))
        if j * (K ** (keta - i)) == N and i != keta:
            j -= 1
        N -= j * (K**(keta-i))
        ans[check] = j
        check += 1
    return ans


for i in change(N):
    print(al[i-1], end='')

Submission status: Runtime Error

Solution code:
# coding: utf-8
# Your code here!

N=int(input())#変換したい10進数の値
K=26#進数

al = [chr(i) for i in range(97, 97+K)]

def change(N):
    keta=0
    # 桁数を求める
    tmp = 0
    for i in range(10**9):
        if N < K**i + tmp:
             keta = i
             break
        tmp += K**i
    ans=[0]*keta # 桁数の配列を準備する
    check=0
    for i in range(1,keta+1):
        j = N//(K**(keta-i))
        ans[check]=j
        check+=1
        N-=(j)*(K**(keta-i))
    return ans
    
for i in change(N):
    print(al[i-1],end = '')

Submission status: Runtime Error

Solution code:
n=int(input())
ans = ''
while n>0:
        n = n-1
        s += chr(ord('a') + (n)% 26)
        n//=26
ans = ans[::-1]
print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
s = ''
while n>0:
        s += chr(ord('a') + (n-1)% 26)
        (n-1)//=26

print(s[::-1])

Submission status: Runtime Error

Solution code:
n=int(input())
a=26
b=1
import string
array=list(string.ascii_lowercase)
while n>a:
  b+=1
  a+=26**b
if b==1:
  print(array[n-1])
else:
  c=b-1
  d=n-26**c
  brray=[0]
  crray=[d]
  for i in range(c-1):
    brray[i+1]=crray[i]//(26**(c-i))
    crray[i+1]=crray[i]%(26**(c-i))
  ans=array[brray[1]-1]
  if c>1:
    for j in range(2,c):
      ans=ans+array[brray[j]]
  ans=ans+array[crray[c]-1]
  print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
a=26
b=1
import string
array=list(string.ascii_lowercase)
while n>a:
  b+=1
  a+=26**b
if b==1:
  print(array[n-1])
else:
  c=b-1
  d=n-26**c
  brray=[0]
  crray=[d]
  for i in range(c-1):
    brray[i+1]=crray[i]//(26**(c-i))
    crray[i+1]=crray[i]%(26**(c-i))
  ans=[]
  for j in range(1,c):
    ans[j]=array[brray[j]]
  ans.append(array[crray[c]-1])
  print( ''.join( ans ) )

Submission status: Runtime Error

Solution code:
n=int(input())
a=26
b=1
import string
array=list(string.ascii_lowercase)
while n>a:
  b+=1
  a+=26**b
if b==1:
  print(array[n-1])
else:
  c=b-1
  d=n-26**c
  brray[0]
  crray[d]
  for i in range(c-1):
    brray[i+1]=crray[i]//(26**(c-i))
    crray[i+1]=crray[i]%(26**(c-i))
  ans=[]
  for j in range(1,c):
    ans[j]=array[brray[j]]
  ans.append(array[crray[c]-1])
  print( ''.join( ans ) )

Submission status: Runtime Error

Solution code:
n=int(input())
a=26
b=1
import string
array=list(string.ascii_lowercase)
while n>a:
  b+=1
  a+=26**b
if b==1:
  print(array[n-1])
else:
  c=b-1
  d=n-26**c
  for i in range(c-1):
    brray=[0]
    crray=[d]
    brray[i+1]=crray[i]//(26**(c-i))
    crray[i+1]=crray[i]%(26**(c-i))
  ans=[]
  for j in range(1,c):
    ans[j]=array[brray[j]]
  ans.append(array[crray[c]-1])
  print( ''.join( ans ) )

Submission status: Runtime Error

Solution code:
n=int(input())
a=26
b=1
import string
array=list(string.ascii_lowercase)
while n>a:
  b+=1
  a+=26**b
if b==1:
  print(array[n-1])
else:
  c=b-1
  d=n-26**c
  for i in range(c-1):
    brray=[0]
    crray=[d]
    brray[i+1]=crray[i]//(26**(c-i))
    crray[i+1]=crray[i]%(26**(c-i))
  ans=array[brray[1]-1]
  if c>1:
    for j in range(2,c):
      ans=ans+array[brray[j]]
  ans=ans+array[crray[c]-1]
  print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
a=26
b=1
import string
array=list(string.ascii_lowercase)
while n>a:
  b+=1
  a+=26**b
if b==1:
  print(array[n-1])
else:
  c=b-1
  d=n-26**c
  for i in range(c-1):
    brray=[0]
    crray=[d]
    brray[i+1]=crray[i]//(26**(c-i))
    crray[i+1]=crray[i]%(26**(c-i))
  ans=array[brray[1]-1]
  if c>1:
    for j in range(2,c):
      ans=ans+array[brray[j]-1]
  ans=ans+array[crray[c]-1]
  print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
a=26
b=1
import string
array=list(string.ascii_lowercase)
while n>a:
  b+=1
  a+=26**b
if b==1:
  print(array[n+1])
else:
  c=b-1
  d=n-26**c
  for i in range(c-1):
    brray=[0]
    crray=[d]
    brray[i+1]=crray[i]//26**(c-i)
    crray[i+1]=crray[i]%26**(c-i)
  ans=array[brray[1]+1]
  if c>1:
    for j in range(2,c):
      ans=ans+brray[j]
  ans=ans+crray[c]
  print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())

s = ''
for i in range(11):
  if N != 0:
    n -= 1
    s += chr(ord('a') + N % 26)
    n //= 26
print(s[::-1])

Submission status: Runtime Error

Solution code:
arr = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
n = int(input())

def calc(sho, res):
    q, mod = divmod(sho, 26)
    res = arr[mod - 1] + res
    if (mod == 0):
        print(res)
    else:
        res = arr[q - 1] + res
        print(res)
    return
    
calc(n, "")

Submission status: Runtime Error

Solution code:
def calc(sho, res):
    q, mod = divmod(sho, 26)
    res = arr[mod - 1] + res
    if(q >= 26):
        calc(q, res)
    else:
        if (q == 0):
            print(res)
        elif(mod == 0):
            print(res)
        else:
            res = arr[q - 1] + res
            print(res)
    return 

calc(n, "")

Submission status: Runtime Error

Solution code:
def num2alpha(num):
    if num <= 26:  return chr(64 + num)
    elif num % 26 == 0:  return num2alpha(num // 26 - 1) + chr(90)
    return num2alpha(num // 26) + chr(64  num % 26)

N = int(input())
ans = num2alpha(N).lower()
print(ans)

Submission status: Runtime Error

Solution code:
from collections import deque   #dequeはappendleftができるので。

letter = [0] + [chr(i) for i in range(97, 123)] #[0, a, b, c, ... , z]というリスト

N = int(input())

i = 0
n_24 = deque()

while N > 0:
    n_24.appendleft(N % 26)
    N = N // 26

ans = ''

for dig in (n_24):
    ans += letter[dig]

print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())

for d in range(1, n):
    if n <= 26 ** d:
        break
    n -= 26 ** d

n -= 1
out = ""
for i in range(d - 1, -1, -1):
    out += chr(ord('a') + n // (26 ** i))
    n %= 26 ** i
print(out)

Submission status: Runtime Error

Solution code:
n = int(input())
m = n

for d in range(1, n):
    if m <= 26 ** d:
        break
    m -= 26 ** d

out = ""
for i in range(d - 1, -1, -1):
    out += chr(ord('a') + n // (26 ** i) - 1)
    n %= 26 ** i
print(out)

Submission status: Runtime Error

Solution code:
from itertools import accumulate
import numpy as np
N=int(input())
N-=1
L=[26**(i+1) for i in range(15)]
sL=list(accumulate(L))
result=[]
k=0
for i in range(10):
    if N+1<=sL[i] and N>=25:
        N-=sL[i-1]
        k=i
        break
for m in range(k):
    time=0
    while N>=L[k-m-1]:
        N-=L[k-m-1]
        time+=1
    result.append(chr(time+97))
result.append(chr(N+97))
print(''.join(result))

Submission status: Runtime Error

Solution code:
from itertools import accumulate
import numpy as np
N=int(input())
L=[26**(i+1) for i in range(15)]
sL=list(accumulate(L))
result=[]
k=0
for i in range(10):
    if N<=sL[i] and N>=26:
        N-=sL[i-1]
        k=i
        break
for m in range(k):
    time=0
    while N>=L[k-m-1]:
        N-=L[k-m-1]
        time+=1
    result.append(chr(time+97))
result.append(chr(N+96))
print(''.join(result))

Submission status: Runtime Error

Solution code:
from itertools import accumulate
import numpy as np
N=int(input())-1
L=[26**(i+1) for i in range(10)]
sL=list(accumulate(L))
result=[]
k=0
for i in range(10):
    if N<=sL[i] and N>=26:
        N-=sL[i-1]
        k=i
        break
for m in range(k):
    time=0
    while N>=L[k-m-1]:
        N-=L[k-m-1]
        time+=1
    result.append(chr(time+97))
result.append(chr(N+97))
print(''.join(result))

Submission status: Runtime Error

Solution code:
from itertools import accumulate
import numpy as np
N=int(input())-1
L=[26**(i+1) for i in range(10)]
sL=list(accumulate(L))
result=[]
for i in range(10):
    if N<=sL[i] and N>=26:
        N-=sL[i-1]
        k=i
        break
for m in range(k):
    time=0
    while N>=L[k-m-1]:
        N-=L[k-m-1]
        time+=1
    result.append(chr(time+97))
result.append(chr(N+97))
print(''.join(result))

Submission status: Runtime Error

Solution code:
from itertools import accumulate
import numpy as np
N=int(input())
L=[26**(i+1) for i in range(10)]
sL=list(accumulate(L))
result=[]
for i in range(10):
    if N<=sL[i]:
        N-=sL[i-1]
        k=i
        break
for m in range(k):
    time=0
    while N>=L[k-m-1]:
        N-=L[k-m-1]
        time+=1
    result.append(chr(time+97))
result.append(chr(N+96))
print(''.join(result))

Submission status: Runtime Error

Solution code:
from itertools import accumulate
import numpy as np
N=int(input())
L=[26**(i+1) for i in range(10)]
sL=list(accumulate(L))
result=[]
for i in range(10):
    if N<=sL[i]:
        N-=sL[i-1]
        k=i
        break
for m in range(k):
    time=0
    while N>=L[k-m-1]:
        N-=L[k-m-1]
        time+=1
    result.append(chr(time+97).translate(correspond))
result.append(chr(N+96))
print(''.join(result))

Submission status: Runtime Error

Solution code:
N = int(input())
eList = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
n = N
mod = N
numList = []
 
while n > 0:
  n, mod = divmod(n,26)
  if mod != 0:
    numList.insert(0, mod - 1)
  else:
    numList.insert(0, 25)
    n -= 1
for num in numList:
  ans += eList[num]
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
eList = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
n = N
mod = N
numList = []

while n > 0:
  n, mod = divmod(n,26)
  if mod != 0:
    numList.insert(0, mod - 1)
  else:
    numList.insert(0, 25)
    n -= 1
for num in numList:
  if num != 0:
    ans += eList[num]
print(ans)

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
import sys
import string

l = [None]+[c for c in string.ascii_lowercase]
def f(N: int):
    N -= 1
    if N // 26:
        return f(N//26) + l[N%26]
    else:
        return l[N%26]

def solve(N):
    print(f(N))

# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
import sys
import string

l = [None]+[c for c in string.ascii_lowercase]
def f(N: int):
    if N // 26:
        return f(N//26) + l[N%26]
    else:
        return l[N%26]

def solve(N):
    print(f(N))

# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
N = int(input())

chars = "0abcdefghijklmnopqrstuvwxyz"
a = ""
n_1 = N

while True:
    x = n_1 % 26

    if x == 0:
        x = 26

    a += chars[x]
    n_1 -= x
    if n_1 == 0:
        break

    n //= 26

print(a[::-1])

Submission status: Runtime Error

Solution code:
N = int(input())

chars = "0abcdefghijklmnopqrstuvwxyz"
a = ""
n = N

while True:
    x = n_1 % 26

    if x == 0:
        x = 26

    a += chars[x]
    n_1 -= x
    if n_1 == 0:
        break

    n //= 26

print(n[::-1])

Submission status: Runtime Error

Solution code:
N = int(input())

chars = "0abcdefghijklmnopqrstuvwxyz"
a = ""
n = N

while True:
    x = N % 26

    if x == 0:
        x = 26

    a += chars[x]
    n -= x
    if n == 0:
        break

    n //= 26

print(n[::-1])

Submission status: Runtime Error

Solution code:
#include<stdio.h>
int main()
{
	long long int n,r=0,i=0,j;
	char a[100];
	scanf("%lld",&n);
	while(1){
		if(n==0) break;
		n--;
		r=n%26;
		n=n/26;
		a[i]='a'+r;
		i++;
	}
	for(j=i-1;j>=0;j--){
		printf("%c",a[j]);
	}
	return 0;
}

Submission status: Runtime Error

Solution code:
alphabet = 'abcdefghijklmnopqrstuvwxyz'
num_2_alpha = {i:alphabet[i - 1] for i in range(1,27)}

def named(N):
  _ = ''
  while N > 0:
    a = N % 26
    N //= 26
    _ += num_2_alpha[a]
  
  return _[-1::-1]

N = int(input())
print(named(N))

Submission status: Runtime Error

Solution code:
alphabet = 'abcdefghijklmnopqrstuvwxyz'
num_2_alpha = {i:alphabet[i - 1] for i in range(1,27)}

def named(N):
  _ = ''
  while N > 0:
    a = N % 26
    N = N // 26
    _ = num_2_alpha[a] + _
  
  return _

N = int(input())
print(named(N))

Submission status: Runtime Error

Solution code:
n = int(input())

name = []

while n > 0:
    n -= 1
    name.append(alp[n % 26])
    n //= 26

name.reverse()

print(*name,sep='')

Submission status: Runtime Error

Solution code:
N = int(input())

alph = ['z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',\
     'k', 'l', 'm', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',\
         'x', 'y']

seq = []

while N > 0:
    s = N % 26
    N //= 26
    seq.append(s)
L = len(seq)

name = ''

for i in range(L):
    name = alph[seq[i]] + name

print(name)

Submission status: Runtime Error

Solution code:
#C
N=int(input())
alp=list(a)
Name=[]
for i in reversed(range(11)):
    if N/(26**i) >=1:
        alp_index=N//(26**i)-1 if N//(26**(i-1))!=26 else 25
        Name.append(alp[alp_index])
    N=N%(26**i)
print(''.join(Name))

Submission status: Runtime Error

Solution code:
#C
N=int(input())
#alp=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
alp=list(a)
Name=[]
for i in reversed(range(11)):
    if N/(26**i) >=1:
        alp_index=N//(26**i)-1 if N//(26**(i-1))!=26 else 25
        Name.append(alp[alp_index])
    N=N%(26**i)
print(''.join(Name))

Submission status: Runtime Error

Solution code:
N = int(input())
l = 'abcdefghijklmnopqrstuvwxyz'
s = ''
a = N % 26
s += l[a]
N \\= 26
while(N!=0):
  N -= 1
  a = N % 26
  s += l[a]
  N \\= 26
print(s[::-1])

Submission status: Runtime Error

Solution code:
N=int(input())
lis=[chr(i) for i in range(97, 97+26)]
ans=''
while N>0:
    N-=1
    ans+=lis[N%26]
    N=N//26
print(ans[::-1]

Submission status: Runtime Error

Solution code:
N=int(input())
lis=[chr(i) for i in range(97, 97+26)]
ans=''
for i in range(100000):
    rem=N%26**(i+1)
    ans=ans+lis[rem-1-26*i]
    if 26**(i+1)>N:
        break
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())

abc = 'abcdefghijklmnopqrstuvwxyz'
s = ''
while n > 0:
    n -= 1
    n, mod = divmod(n, 26)
    s += a[mod]
print(s[::-1])

Submission status: Runtime Error

Solution code:
n=int(input())
a='Xabcdefghijklmnopqrstuvwxyz'
a=list(a)
j=11
ans=''
while True:
    while n<=26**j:
        j-=1
    temp=a[n//26**j]
    ans+=temp
    n%=26**j
    j-=1
    if j==-1:
        break
print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
a='Xabcdefghijklmnopqrstuvwxyz'
a=list(a)
j=11
ans=''
while True:
    while n<26**j:
        j-=1
    temp=a[n//26**j]
    ans+=temp
    n%=26**j
    j-=1
    if j==-1:
        break
print(ans)

Submission status: Runtime Error

Solution code:
import sys
sys.stdin = open('input.txt', 'r')
sys.stdout = open('output.txt', 'w')

n=int(input())
ans=''
while n:
    k=n//26
    r=n%26
    if r==0:
        ans='z'+ans
    else:
        ans=chr(ord('a')+r-1)+ans   

    n=k
    
print(ans)






# -----------------------------------------------------------------------------------------!

Submission status: Runtime Error

Solution code:
n = int(input())
ans = ""
while(n):

    k = n//26
    r = n % 26
    if r == 0:
      
      
      a += z
    else:
      
      
      ans = chr(ord('a')+r-1)+ans
    n = k
print(ans)

Submission status: Runtime Error

Solution code:

n = int(input())
ans = ""
while(n):

    k = n//26
    r = n % 26
    if r == 0:
        a += z
    else:
        ans = chr(ord('a')+r-1)+ans
    n = k
print(ans)

Submission status: Runtime Error

Solution code:

# ---------------------------------------MAIN()-----------------------------------------------!
def main():
  

    n = int(input())
    ans = ""
    while(n):

        k = n//26
        r = n % 26
        if r == 0:
            a += z
        else:
            ans = chr(ord('a')+r-1)+ans
        n = k
    print(ans)


# -----------------------------------------------------------------------------------------!
# region fastio
BUFSIZE = 8192


class FastIO(IOBase):
    newlines = 0

    def _init_(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
    def _init_(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
def input(): return sys.stdin.readline().rstrip("\r\n")

# endregion


if __name__ == "__main__":
    main()