Spy Message
Spies have devised a method to communicate by embedding secret messages within ordinary letters. They agreed to use the first letters of specific words from a predetermined set to encode their messages, while other words serve as camouflage.
Your task is to write a program that extracts the secret message using the provided set of words and the text of the letter.
Input
The input begins with a single integer N (10 ≤ N ≤ 1000), representing the number of words in the set. The following N lines each contain one word, composed solely of lowercase Latin letters, with a maximum length of 15 letters. After these lines, the text of the letter continues until the end of the file. The secret message is formed by taking the first letters of words in the letter that begin with any of the specified substrings. The letter consists of Latin letters (case-insensitive) and punctuation marks. Words are separated by spaces, newline characters, and punctuation marks (for example, the text "x-ray" is considered as two words: "x" and "ray"). The text contains no more than 100000 words, each line of text is at most 250 characters long, and each word is no longer than 25 characters.
Output
Print a single line containing the secret message. The letters in the message should be in lowercase.