AtCoder Beginner Contest 171
翻译中…
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 namesa,b, ...,z; - the dogs numbered
$27,28,29,\cdots,701,702$were respectively given the namesaa,ab,ac, ...,zy,zz; - the dogs numbered
$703,704,705,\cdots,18277,18278$were respectively given the namesaaa,aab,aac, ...,zzy,zzz; - the dogs numbered
$18279,18280,18281,\cdots,475253,475254$were respectively given the namesaaaa,aaab,aaac, ...,zzzy,zzzz; - the dogs numbered
$475255,475256,\cdots$were respectively given the namesaaaaa,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.
翻译中…
样例
Input #1
2
Output #1
b
Input #2
27
Output #2
aa
Input #3
123456789
Output #3
jjddja
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。