def bit_combination(n,base=2): rt=[] for tb in R(base**n):s=[tb//(base**bt)%base for bt in R(n)];rt+=[s] return rt n=int(input()) e=[int(i)for i in input().split()] f=1 for x in bit_combination(n,3): a=[0]*3 for i in range(n):a[x[i]]+=e[i] if len(set(a))==1:f=0 print('YNeos'[f::2])