Write a program that checks if a set of N numbers contain a number M.
The first line contains the N number.
The next N lines contain the numbers.
The last line contains one integer number M.
You need to output YES or NO.
Write a program that checks if a set of N numbers contain a number M.
The first line contains the N number.
The next N lines contain the numbers.
The last line contains one integer number M.
You need to output YES or NO.
Sample Input 1:
3
1
3
2
3Sample Output 1:
YESSample Input 2:
5
1
3
2
5
4
7Sample Output 2:
NOCreate a free account to access the full topic