#d2841. 倒数第n个字符串
倒数第n个字符串
The N-th String from the End
Problem Description
Consider an arithmetic increasing sequence made entirely of lowercase English letters, where every string has a fixed length , starting from copies of a and increasing by each step. For example, when , the sequence is aaa, aab, aac, ..., aaz, aba, abb, ..., abz, ..., zzz. The second string from the end of this sequence is zzy. For any given , output the -th string from the end of the corresponding sequence.
Input Format
One line gives two positive integers () and ().
Note: the data range has been changed!
Output Format
Output the -th string from the end on one line. The problem guarantees such a string exists.
Sample Input
6 789
Sample Output
zzzyvr