#include <cstdio>

using namespace std;

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