Kth Sentence

Time Limit : 3 sec, Memory Limit : 131072 KB

Kth Sentence

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.

Input

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.

Output

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

Sample Input 1

2 10 2
hello
world


Output for the Sample Input 1

helloworld


Sample Input 2

3 3 6
a
aa
b


Output for the Sample Input 2

aba


Sample Input 3

2 59 1000000000000000000
a
b


Output for the Sample Input 3

-


Source: ACM-ICPC Japan Alumni Group Winter Contest 2012 , Tokyo, Japan, 2012-03-10
http://jag-icpc.org/