#include<bits/stdc++.h>
using namespace std;
#define ll long long
typedef pair<ll,ll> P;
#define M 1000000007
int main(){
  int n;
  cin>>n;
  if(n!=3){
    cout<<"No";
    return 0;
  }
  cin>>a>>b>>c;
  if(a^b==c)cout<<"Yes";
  else cout<<"No";
}