< number of words in vocabulary >
< word 1 >
..............
< word N >
< test word 1 >
................
< test word k >
END
< number of words in vocabulary > is an integer number N < 1000. < word 1 > up to < word N > are words from the vocabulary. < test word 1 > up to < test word k > are the words to find anagrams for. All words are lowercase (word ‘END’ means end of data — it is NOT a test word). You can assume all words are not longer than 20 characters.
For each < test word > — in the order in which it appeared — list the found anagrams in the following way:
Anagrams for: < test word >
< N o >) < anagram >
...............
< N o > should be printed on 3 chars.
In case of failing to find any anagrams your output should look like this:
Anagrams for: < test word >
No anagrams for: <test word>
Print a blank line between datasets.