import numpy as np
import cmath
N = input()
N = int(N)
#nums = []
nu = input().split()
nui = [int(s) for s in nu]
nus = set(nui)
nul = list(nus)

if(len(nul)==3):
    a = nul[0]
    b = nul[1]
    c = nul[2]
    a_s = list(format(a,"034b"))
    b_s = list(format(b,"034b"))
    c_s = list(format(c,"034b"))
    
    a_si = [int(s) for s in a_s]
    b_si = [int(s) for s in b_s]
    c_si = [int(s) for s in c_s]
    
    a_np = np.array(a_si)
    b_np = np.array(b_si)
    c_np = np.array(c_si)
    
    sum = a_np + b_np + c_np
    
    amari = sum%2
    
    ind = np.where(amari==1)
    
    if(len(ind[0])==0):
        print("Yes")
    else:
        print("No")
else:
    print("No")
