Write a program that reads an unsorted array of integers and two numbers: P and M. The program needs to check whether P and M occur in the array.
The first line contains the size of an array.
The next N lines contain elements of the array.
The last line contains two integer numbers P and M, separated by one space character.
If both numbers occur in the array you need to print YES, otherwise NO.