#include <iostream>
#include <cstdio>
using namespace std;
long long n, a, sum;
int main()
{
    cin >> n;
    for(int i = 0; i < n; i++){
        scanf("%d", &a);
        sum ^= a;
    }
    if(sum == 0){
        cout << "Yes";
    }else{
        cout << "No";
    }
    return 0;
}
