#include<bits/stdc++.h>

#define ll long long

using namespace std;

int main(void){
    int N;
    cin >> N;
    vector<ll> a(N);
    ll x = 0;
    for(int i = 0; i < N; i++){
        cin >> a[i];
        x ^= a[i];
    }
    if(x == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}
