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 <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <queue>
#include <cmath>
#include <iostream>
#include <cstdlib>
#include <sstream>

using namespace std;

const long long oo=1000000000000000001LL;
void add(long long &a,long long b)
{
	a+=b;
	if(a>=oo)a=oo;
}
long long mult(long long a,long long b)
{
	if(a==0||b==0)return 0;
	if(a<=oo/b)return a*b;
	return oo;
}

int n;
char a[110][220];
int len[110];

long long dp[2010];
long long f[2010];

bool can[110][220];
long long cnt[30];

int main()
{
	int m;
	long long K;
	while(~scanf("%d %d %lld",&n,&m,&K))
	{
		for(int i=1;i<=n;i++)scanf("%s",a[i]+1);
		for(int i=1;i<=n;i++)len[i]=strlen(a[i]+1);
		dp[0]=1;
		for(int i=1;i<=m;i++)
		{
			dp[i]=0;
			for(int j=1;j<=n;j++)
				if(len[j]<=i)
					add(dp[i],dp[i-len[j]]);
		}
		if(K>dp[m])
		{
			puts("-");
			continue;
		}
		memset(can,0,sizeof(can));
		for(int i=1;i<=n;i++)can[i][0]=1;
		memset(f,0,sizeof(f));
		f[0]=1;

		for(int i=1;i<=m;i++)
		{
			memset(cnt,0,sizeof(cnt));
			for(int j=1;j<=n;j++)
				for(int k=0;k<len[j];k++)
					if(can[j][k])
					{
						int ll=m-i-(len[j]-(k+1));
						if(ll<0)continue;
						long long t=mult(f[i-k-1],dp[ll]);
						add(cnt[a[j][k+1]-'a'],t);
					}
			for(int x=0;x<26;x++)
			{
				if(cnt[x]<K)
					K-=cnt[x];
				else
				{
					printf("%c",'a'+x);
					for(int j=1;j<=n;j++)
						if('a'+x==a[j][len[j]]&&can[j][len[j]-1])
							add(f[i],f[i-len[j]]);
					for(int j=1;j<=n;j++)
					{
						for(int k=len[j]-1;k>=1;k--)
							if(can[j][k-1]&&('a'+x)==a[j][k])
								can[j][k]=1;
							else can[j][k]=0;
					}
					break;
				}
			}
		}

		puts("");
	}
}