#include <bits/stdc++.h>

using namespace std;

int main() {
    int N, a, res=0;
    cin >> N;
    
    for(int i=0; i<N; i++) {
        cin >> a;
        res = res ^ a;
    }

    if(res == 0) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}