#include <bits/stdc++.h>
using namespace std;
int main() 
{
  ios::sync_with_stdio(false);
  cin.tie(NULL); cout.tie(NULL);
  int n;
  cin >> n;
  int ret = 0;
  for (int i = 0; i < n; i ++)
	{
    int t;
    cin >> t;
    ret ^= t;
  }
  if (ret == 0) cout << "Yes\n";
  else cout << "No\n";
}
