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

// def
#define debug(x) cout << #x << ": " << x << endl
#define out(x) cout << x << endl
typedef long long ll;
const int M = 1e9 + 7;
const int INF = 1e9;
const int MAX_V = 300 + 5;
const int MAX_N = 1e5 + 5;

int main() {
    int n;
    cin >> n;
    int x;
    cin >> x;
    for (i = 1; i < n; i++) {
        int b;
        cin >> b;
        x ^= b;
    }
    if (x == 0)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
}
