Kth Sentence

아직 제출이 없습니다시간 제한3초메모리 제한512 MB

문제

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

Since he completely forgot the English grammar, he decided to consider all sentences of length mm constructed by concatenating the words he knows and write the KK-th sentence among the candidates sorted in lexicographic order. He believes that it must be the correct sentence because KK 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 nn (1n1001 \leq n \leq 100), mm (1m20001 \leq m \leq 2000) and KK (1K10181 \leq K \leq 10^{18}), separated by a single space. Each of the following nn 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 KK-th (1-based) sentence of length mm in lexicographic order. If there is no such a sentence, print "-".