Problem: 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

-

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define all(c) c.begin(),c.end()
#define pb push_back
#define fs first
#define sc second
#define show(x) cout << #x << " = " << x << endl
#define chmin(x,y) x=min(x,y)
#define chmax(x,y) x=max(x,y)
using namespace std;
typedef long long ll;
int N,L;
ll K;
void add(ll &x,ll y){
	x=min(x+y,K);
}
ll pro(ll x,ll y){
	if(x==0||y==0) return 0;
	if(x>K/y) return K;
	return x*y;
}
string s[100];
int n[100];
ll way_[2400];
ll *way=way_+300;
ll dp[100][200];
int main(){
	cin>>N>>L>>K;
	rep(i,N) cin>>s[i];
	rep(i,N) n[i]=s[i].size();
	way[0]=1;
	rep(i,L){
		rep(j,N) if(i+n[j]<=L) add(way[i+n[j]],way[i]);
	}
	string ans;
	dp[0][n[0]-1]=1;
	rep(i,L){
		ll nx[26]={};
		rep(j,N){
			rep(k,n[j]){
				if(k==n[j]-1){
					rep(l,N) add(nx[s[l][0]-'a'],pro(dp[j][k],way[L-i-n[l]]));
				}else{
					add(nx[s[j][k+1]-'a'],pro(dp[j][k],way[L-i-n[j]+k+1]));
				}
			}
		}
		ll sum=0;
		int A=-1;
		rep(j,26){
			ll tmp=sum;
			sum+=nx[j];
			if(sum>=K){
				K-=tmp;
				A=j;
				break;
			}
		}
		if(A<0){
			assert(i==0);
			puts("-");
			return 0;
		}
		ans+='a'+A;
		ll ndp[100][200]={};
		rep(j,N){
			rep(k,n[j]){
				if(k==n[j]-1){
					rep(l,N) if(s[l][0]-'a'==A) add(ndp[l][0],dp[j][k]);
				}else{
					if(s[j][k+1]-'a'==A) add(ndp[j][k+1],dp[j][k]);
				}
			}
		}
		rep(j,N) rep(k,n[j]) dp[j][k]=ndp[j][k];
	}
	cout<<ans<<endl;
}