#include <iostream>

using namespace std;
long long n, a, sum;
int main()
{
    cin >> n;
    for(int i = 0; i < n; i++){
        cin >> a;
        sum ^= a;
    }
    if(sum == 0){
        cout << "Yes";
    }else{
        cout << "No";
    }
    return 0;
}
