Dictionary of Obscene Words
Given a dictionary of obscene words S_1 , S_2 , ..., S_n and text T, find if text contains one of obscene words as subsequence. If it does, find smallest prefix of T that contains such subsequence.
Input
First line of input contains one integer n - number of words in dictionary. Following n lines contain words from dictionary, one per line. Each word consists of ASCII characters with codes from 32 to 127, inclusive. Next line contains text T, consisting of the same set of characters. Total length of all words in dictionary doesn't exceed 100 KiB (100 x 2^10 bytes). Total size of input file doesn't exceed 1 MiB (2^20 bytes).
Output
Output NO if there is no obscene subsequence in the text. Otherwise output YES <X>, where X is the length of smallest prefix of T that contains some obscene subsequence.