#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 ii (0i1090≤i≤10^9), and numbers can be repeated. A random integer kk (0k109+1000≤k≤10^9+100) is given, and players need to determine if a ball with number kk exists in the pile (answer "YESYES" if it exists, otherwise "NONO"). 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 mm and nn (0m1060≤m≤10^6, 0n1060≤n≤10^6);
mm represents the number of balls in the pile, and nn represents the number of times the game will be played.
The next m+nm+n integers are input, where the first mm numbers represent the numbers ii of the mm balls, and the last nn numbers represent the random integers kk for each game.

Output Format

Output "YESYES" or "NONO".

Sample

6 4
23 34 46 768 343 343
2 4 23 343
NO
NO
YES
YES