#include<bits/stdc++.h>
using namespace std;
const int maxn=1e5+10;
int n,a,x;
int main()
{
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>a;
        x=x^a;

    }
    if(x==0)
        cout<<"Yes"<<endl;
    else cout<<"No";



}
