Problem 1064 --搜索-小木棍2DFS

1064: 搜索-小木棍2DFS

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

Description

Input

Output

能的话输出"Yes",否则输出"No"

Sample Input

4
1 1 1 1

Sample Output

Yes

Source

[Submit][Status]