#include<bits/stdc++.h>
using   namespace std;
const int maxn=2e5+100;
int A[maxn];
int n,x;
int main()
{
    while(cin>>n)
    {
        int sum=0;
        while(n--)
        {
            cin>>x;
            sum^=x;
        }
        cout<<(sum==0?"Yes":"No")<<endl;
    }
}