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 "-".

Examples

Input

2 10 2
hello
world


Output

helloworld


Input

3 3 6
a
aa
b


Output

aba


Input

2 59 1000000000000000000
a
b


Output

-
#include <bits/stdc++.h>
using namespace std;
const long long INF = 1ll << 60;
long long MUL(long long x, long long y) {
  return __builtin_clzll(x) + __builtin_clzll(y) <= 64 ? INF : x * y;
}
long long ADD(long long x, long long y) {
  return x = x + y > INF ? INF : x + y;
}
int main() {
  int n, m;
  long long idx, cnt[2205] = {1}, pfx[2205] = {1};
  char str[205];
  string a[100], ans;
  vector<int> u[100], v[100];
  sscanf(gets(str), "%d%d%lld", &n, &m, &idx);
  idx--;
  for (int i = 0; i < n; i++) a[i] = gets(str);
  for (int i = 0; i < m; i++)
    for (int j = 0; j < n; j++)
      cnt[i + a[j].size()] = ADD(cnt[i + a[j].size()], cnt[i]);
  if (idx >= cnt[m]) return puts("-"), 0;
  for (int i = 0; i < n; i++)
    if (a[i].size() <= m) u[i].push_back(0);
  for (int l = 0; l < m; l++) {
    long long use[128] = {};
    for (int i = 0; i < n; i++) {
      for (size_t j = 0; j < u[i].size(); j++) {
        int x = u[i][j];
        long long p = pfx[l - x], q = cnt[m - l + x - a[i].size()];
        use[int(a[i][x])] = ADD(use[int(a[i][x])], MUL(p, q));
      }
    }
    int c, start = 0;
    for (c = 'a'; use[c] <= idx; idx -= use[c++])
      ;
    ans += char(c);
    for (int i = 0; i < n; i++) {
      for (size_t j = 0; j < u[i].size(); j++) {
        int x = u[i][j];
        if (c == a[i][x] && a[i].size() != x + 1) v[i].push_back(x + 1);
        if (c == a[i][x] && a[i].size() == x + 1) {
          pfx[l + 1] = ADD(pfx[l + 1], pfx[l - x]);
          start = 1;
        }
      }
    }
    start = 1;
    for (int i = 0; i < n; v[i++].clear()) {
      if (start) v[i].push_back(0);
      u[i].swap(v[i]);
    }
  }
  puts(ans.c_str());
}
