Lucy is learning string hash algorithm .
For a given string

, she will execute the following code to get it's hash code .
//Language C++14
long long mod=5999993;
long long gethas(string s)
{
long long ret=0;
for (char c:s)
ret=(ret*29+(c-'a'+1))%mod;
return ret;
}
Ruby thinks the value of mod is not big enough , so he decides to generate a string

meets the following conditions .
1.

only contains lowercase English letters .
2.

is a prefix of

.
3. Hash code of

and

are the same .
4.

.

means the length of string

.
输入描述:
The first line contains an integer
.
Then
lines follow , each line contains a string
. (
,
only contains lowercase English letters) .
To avoid unknown errors , please do not read data in the way of character by character .
输出描述:
For each case , print the answer
in one line .
If there are multiple answers , print any one .