#P424. 【例73.1】 找球号
【例73.1】 找球号
Description
There is a game with the following rules: In a pile of balls, each ball has an integer number (), and numbers can be repeated. A random integer () is given, and players need to determine if a ball with number exists in the pile (answer "" if it exists, otherwise ""). The first to answer correctly wins. Now there is a person who wants to play this game but is too lazy. He hopes you can help him win.
Input Format
The first line contains two integers and (, );
represents the number of balls in the pile, and represents the number of times the game will be played.
The next integers are input, where the first numbers represent the numbers of the balls, and the last numbers represent the random integers for each game.
Output Format
Output "" or "".
Sample
6 4
23 34 46 768 343 343
2 4 23 343NO
NO
YES
YES