#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int res=0; while(n--){ int x; cin>>x; res^=x; } if(res==0) cout<<"No"<<endl; else cout<<"Yes"<<endl; return 0; }