Four Xor
题号:NC216040
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

There is a sequence , you need to answer whether there are 4 integers satisfying and

The input guarantees that

Note: means the exclusive or of x and y

输入描述:

The first line contains one single integer .

The second line contains integers .

The input guarantees that and .

输出描述:

Output "Yes" if there are 4 integers satisfying the conditions, otherwise output "No".
示例1

输入

复制
5
1 2 3 4 5

输出

复制
Yes
示例2

输入

复制
5
1 2 4 8 16

输出

复制
No
示例3

输入

复制
5
1 3 4 8 9

输出

复制
No