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

const int maxn = 100010;
int n, a[maxn], x;

int main() {
    scanf("%d", &n);
    for (int i = 1; i <= n; i++) {
        scanf("%d", &a[i]), x ^= a[i];
    }
    printf("%s\n", x ? "No" : "Yes");
    return 0;
}