#include <iostream>
#include <vector>

using namespace std;

int main() {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; i++)cin >> v[i];

    int x = 0;
    for (int i = 0; i < n; i++)x ^= v[i];
    cout << (x == 0 ? "Yes" : "No") << endl;

    return 0;
}