Problem3630--【Div4】abc461b-诚实的樵夫

3630: 【Div4】abc461b-诚实的樵夫

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

Description



Sample Input Copy

3
3 1 2
2 3 1

Sample Output Copy

Yes

Source/Category