시간 제한메모리 제한제출정답맞힌 사람정답 비율
3 초 512 MB0000.000%

문제

A student, Kita_masa, is taking an English examination. In this examination, he has to write a sentence of length $m$.

Since he completely forgot the English grammar, he decided to consider all sentences of length $m$ constructed by concatenating the words he knows and write the $K$-th sentence among the candidates sorted in lexicographic order. He believes that it must be the correct sentence because $K$ is today's lucky number for him.

Each word may be used multiple times (or it's also fine not to use it at all) and the sentence does not contain any extra character between words. Two sentences are considered different if the order of the words are different even if the concatenation resulted in the same string.

입력

The first line contains three integers $n$ ($1 \leq n \leq 100$), $m$ ($1 \leq m \leq 2000$) and $K$ ($1 \leq K \leq 10^{18}$), separated by a single space. Each of the following $n$ lines contains a word that Kita_masa knows. The length of each word is between 1 and 200, inclusive, and the words contain only lowercase letters. You may assume all the words given are distinct.

출력

Print the $K$-th (1-based) sentence of length $m$ in lexicographic order. If there is no such a sentence, print "-".

예제 입력 1

2 10 2
hello
world

예제 출력 1

helloworld

예제 입력 2

3 3 6
a
aa
b

예제 출력 2

aba

예제 입력 3

2 59 1000000000000000000
a
b

예제 출력 3

-