https://www.acwing.com/problem/content/893/
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100010;
int main() {
int n;
cin >> n;
int ans = 0;
int x;
while (n--) {
cin >> x;
ans ^= x;
}
if (ans)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}