#include<bits/stdc++.h>

#define FOR(i,a,b) for(int i=(a);i<(int)(b);++i)
#define REP(i,n) FOR(i,0,n)
using namespace std;

int main(){
  int n;
  cin>>n;
  int cnt;
  REP(i,n){
    int temp;
    cin>>temp;
    if(i==0){
      cnt==temp;
    }else{
      cmt^=temp;
    }
  }
  if(temp==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
