#include<bits/stdc++.h>
using namespace std;
int main() {
int N, i, xor = 0;
cin >> N;
vector<int> a(3*N);
for(i = 0;i < N;++ i) cin >> a[i];
sort(a.begin(), a.begin()+N);
for(i = 0;i <= N/3;++ i) xor ^= a[i] ^ a[i + N/3] ^ a[i + N/3*2];
cout << (xor ? "No" : "Yes");
return 0;
}