于是我又机智的水了一篇=_=
//POJ-2234.cpp
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <climits>
#include <cctype>
#include <algorithm>
#include <iostream>
#include <string>
#include <stack>
#include <map>
#include <set>
#include <queue>
#include <utility>
#include <vector>
#include <bitset>
#include <functional>
using namespace std;
//const double pai = acos(-1.0);
const double pai = 3.14159265358979323846;
const int INF = 0x3f3f3f3f;
typedef long long love_live;
int main(int argc, char const *argv[]) {
#ifndef ONLINE_JUDGE
// freopen("output", "w", stdout);
freopen("input", "r", stdin);
#endif
int n, m, i, j, k;
while(scanf("%d", &n) != EOF){
int ans = 0;
for(i = 0; i < n; ++i){
scanf("%d", &k);
ans ^= k;
}
if(ans == 0){
printf("No\n");
}
else{
printf("Yes\n");
}
}
return 0;
}