Four XOR

아직 제출이 없습니다시간 제한1초메모리 제한256 MB

문제

Given a sequence A_1...nA\_{1...n} of distinct integers, you need to answer whether there exist four indices x,y,z,wx, y, z, w such that 1x<y<z<wn1 \le x < y < z < w \le n and A_xA_yA_zA_w=0A\_x \oplus A\_y \oplus A\_z \oplus A\_w = 0.

Recall that xyx \oplus y means the bitwise exclusive-or between xx and yy, sometimes expressed as xxoryx \mathrm{xor} y.

입력

The first line contains a single integer nn (4n1054 \le n \le 10^5).

The second line contains nn integers A_1...nA\_{1...n} (0A_i1050 \le A\_i \le 10^5). It is guaranteed that all A_iA\_i are distinct.

출력

Output "Yes" if there are four indices satisfying the conditions, or "No" otherwise.