#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  int tmp;
  cin >> tmp;
  int i;
  int a;
  for(i=1;i<n;i++){
    cin >> a;
    tmp = tmp^a;
  }
  if(tmp==0)cout << "Yes"<<endl;
  else cout << "No"<<endl;

}
