import java.io.*;
class Main{
static BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws Exception{
int n = Integer.valueOf(read.readLine());
String[] ss = read.readLine().split(" ");
int ans = 0;
for(int i = 1; i <= n; i += 2){
ans ^= Integer.valueOf(ss[i - 1]);
}
if(ans == 0) System.out.println("No");
else System.out.println("Yes");
}
}