The simplest spell checker is the one based on a list of known words. Every word in the text is being searched for in this list and, if such word was not found, it is marked as erroneous.
Write such a spell checker.
The first line of the input contains – number of records in the list of known words. Next go lines containing one known word per line, next — the number of lines of the text, after which — lines of the text.
Write a program that outputs those words from the text that are not found in the dictionary (i.e. erroneous). Your spell checker should be case insensitive. The words are entered in an arbitrary order. Words, which are not found in the dictionary, should not be duplicated in the output.