import java.io.*;
import java.util.*;
class Main{
static int N = 110;
static int[] cache = new int[N];
static BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
public static int sg(int x){
if(cache[x] != -1) return cache[x];
Set<Integer> set = new HashSet();
for(int i = 0; i < x; i++){
for(int j = 0; j < x; j++){
set.add(sg(i) ^ sg(j));
}
}
for(int i = 0; ; i++){
if(!set.contains(i)){
cache[x] = i;
return i;
}
}
}
public static void main(String[] args) throws Exception{
int n = Integer.valueOf(read.readLine());
String[] ss = read.readLine().split(" ");
int res = 0;
Arrays.fill(cache, -1);
for(int i = 0; i < n; i++){
res ^= sg(Integer.valueOf(ss[i]));
}
if(res == 0) System.out.println("No");
else System.out.println("Yes");
}
}