import strutils proc putchar_unlocked(c:char){.header: "" .} const bound = 'z'.ord - 'a'.ord# [0,bound] まで使える var cache : array[10,char] proc printAsciis(a:int,useCache:bool=false) = if a == 0: putchar_unlocked('a') return if useCache: for i in 0..<10: if cache[i] == '\0': return putchar_unlocked(cache[i]) var n = a var i = 0 while n > 0: var c = chr('a'.ord + (n mod bound)) if c == 'n' : c = 'z' putchar_unlocked(c) cache[i] = c i += 1 n = n div bound let n = stdin.readLine().parseInt() for i in 0..