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

signed main(){
  
  int n;
  cin>>n;
  
  int ans = 0;

  for(int i=0;i<n;i++){
    int a;
    cin>>a;
    ans^=a;
  }

  if(ans==0) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  
  return 0;
}
