#include <bits/stdc++.h>
using namespace std;

typedef long long int lint;

int main()
{
    lint N;
    cin >> N;
    vector<lint> a(N);
    for (int i = 0; i < N; i++) {
        cin >> a[i];
    }

    lint al = 0;
    for (auto v : a) al = al ^ v;
    cout << (al ? "No" : "Yes") << endl;
    return 0;
}