Problem1094--Bit Soccer

1094: Bit Soccer

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 628  Solved: 286
[Submit] [Status] [Web Board] [Creator:]

Description



Input


Output


Sample Input

5
10 3 5 8 6 
2
7
4

Sample Output

YES
NO

HINT



Source/Category

 

[Submit] [Status]