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