E. Elimination Game
time limit per test
2 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Example
Input
2
5 2 2 4
10 0 9 7
Output
Yes
No