#include <iostream>
#include <vector>
using namespace std;

int N;
int main(){
    cin >> N;
    int x = 0;
    for(int i=0;i<N;i++){
        int a;
        cin >> a;
        x ^= a;
    }
    cout << (x==0? "Yes":"No") << endl;
}