There are n strings s1,s2, ...,sn of length m and a set of strings S.
Here, f(str,S) denotes the numbers of substrings of str that are in S. For example, f(aab,{a,ab})=3.
Note: str is a string in f(str,S)
Now, you have removed S and you are given s1,s2, ...,sn and f(s1,S),f(s2,S), ...,f(sn,S). Find a set of string S′ that maximizes the following score formula:
score of test=(1−tan−1(√∑(f(si,S)−f(si,S′))2)π/2)×5
There are 20 tests for this problem.
Input format
Output format
In the first line, print sz that is the size of S′ and in the following sz lines, print each S′'s element in any order.
The following conditions must be satisfied:
It is guaranteed that S satisfies the mentioned conditions.
The output is the original S.