Common Substring#4659

Common Substring

1 second
256 megabytes
Very easy

Given two strings and , along with an integer , identify the set of all non-empty substrings that are common to both and .

Your task is to determine the -th smallest string in lexicographical order from this set.

Input

The input consists of three lines. The first line contains the string , and the second line contains the string , where 1 \leq |s|, |t| \leq 10^5. The third line contains the integer with 1 \leq k \leq 10^{18}.

Both strings are composed of lowercase Latin letters.

Output

Output the -th lexicographically smallest common substring on the first line. If such a substring does not exist, output .

Examples

Example 1

Loading
Loading