Dictionary#364

Dictionary

1 segundo
64 megabytes
Fácil (≈1000)

In the gibberish language, there are symbols—the first Latin letters. Gibberish words use all these letters, each appearing exactly once in the word. The chief gibberish linguist has compiled a dictionary in which all possible words are listed in alphabetical order. Your task is to find the word corresponding to a given number.

Entrada

Given the number of letters (2 \leq N \leq 12) and the word's number (1 \leq k \leq N!).

Salida

Print the gibberish word.

Ejemplos

Ejemplo 1

Loading
Loading