Introduction - If you have any usage issues, please Google them yourself
input
The input contains a number of test cases. Each test case is composed of multiple lines. The first line is an integer n two (1<=n 100) and m, n said inbound sequence for 1 to n. M indicates that there is then a m line outbound sequence.
When n, M is 0, the end of the input is indicated.
output
For each outbound sequence, a line of YES is exported, otherwise a line of NO is output