Ted loves to solve crosswords but this time he is given a list of words and he is suppose to find those words in the given crossword. He needs your help to find every word in crossword. You'll be given with nXn crossword and m words to find in it. Print True if all the words are found in the crossword else print false. Note : Check for every possible way (diagonal, horizontal, or vertical)
Input Format A number n size of crossword followed by crossword ( matrix form, space separated ) Next line contains integer m, number of words Followed by the m words
Output format Single word True or False