Problem2412--ABC264C-Matrix Reducing

2412: ABC264C-Matrix Reducing

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description



Sample Input Copy

4 5
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
2 3
6 8 9
16 18 19

Sample Output Copy

Yes

HINT

Source/Category