{"raw_statement":[{"iden":"problem statement","content":"There are $N$ stations on a certain line operated by AtCoder Railway. The $i$\\-th station $(1 \\leq i \\leq N)$ from the starting station is named $S_i$.\nLocal trains stop at all stations, while express trains may not. Specifically, express trains stop at only $M \\, (M \\leq N)$ stations, and the $j$\\-th stop $(1 \\leq j \\leq M)$ is the station named $T_j$.  \nHere, it is guaranteed that $T_1 = S_1$ and $T_M = S_N$, that is, express trains stop at both starting and terminal stations.\nFor each of the $N$ stations, determine whether express trains stop at that station."},{"iden":"constrains","content":"*   $2 \\leq M \\leq N \\leq 10^5$\n*   $N$ and $M$ are integers.\n*   $S_i$ $(1 \\leq i \\leq N)$ is a string of length between $1$ and $10$ (inclusive) consisting of lowercase English letters.\n*   $S_i \\neq S_j \\, (i \\neq j)$\n*   $T_1 = S_1$ and $T_M = S_N$.\n*   $(T_1, \\dots, T_M)$ is obtained by removing zero or more strings from $(S_1, \\dots, S_N)$ and lining up the remaining strings without changing the order."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$ $M$\n$S_1$ $\\ldots$ $S_N$\n$T_1$ $\\ldots$ $T_M$"},{"iden":"sample input 1","content":"5 3\ntokyo kanda akiba okachi ueno\ntokyo akiba ueno"},{"iden":"sample output 1","content":"Yes\nNo\nYes\nNo\nYes"},{"iden":"sample input 2","content":"7 7\na t c o d e r\na t c o d e r"},{"iden":"sample output 2","content":"Yes\nYes\nYes\nYes\nYes\nYes\nYes\n\nExpress trains may stop at all stations."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}