#include <bits/stdc++.h>
using namespace std;
int main() {
    int n;
    cin >> n;
    long long int ans = 0;
    for(int i = 0; i < n; i++){
        long long int val;
        cin >> val;
        ans ^= val;
    }
    if(ans == 0){
        cout << "Yes";
    }else{
        cout << "No";
    }
}
