The input consists of several test cases terminated by end-of-file.
The first line of each test case contains two integers n and m.
The second line contains n integers.
The i-th of the following m lines contains two integersand
.
*
****
*for
* The number of tests does not exceed 100.
For each test case, print "`Yes`" without quotes if it is possible. Otherwise, print "`No`" without quotes.