#include <bits/stdc++.h>
#include <ext/pb_ds/detail/standard_policies.hpp>
using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define endl "\n"
const int MAX= 100005 ;
const long long mod = 1.0e9+7;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    #ifndef ONLINE_JUDGE
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    #endif
    ll n,i;
    cin>>n;
    ll arr[n],x=0;
    for(i=0;i<n;i++)
    {
        cin>>arr[i];
        x=x^arr[i];
    }
    if(x==0)
    {
        cout<<"Yes"<<endl;
        
    }
    else
            cout<<"No"<<endl;
    return 0;
}
