#include <iostream>
using namespace std;
int n, a[100000];
int main()
{
    cin >> n;
    for (int i = 0; i < n; ++i)
        cin >> a[i];
    for (int i = 1; i < n; ++i)
        a[0] = a[0] ^ a[i];
    if (!a[0])
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
    return 0;
}