def calc(a,cnt,end): if cnt==len(can)-2: return for c in range(4): if c==0: if a+can[cnt]==end: print("YES") exit() calc(a+can[cnt],cnt+1,end) elif c==1: if a-can[cnt]==end: print("YES") exit() calc(a-can[cnt],cnt+1,end) elif c == 2: if a * can[cnt] == end: print("YES") exit() calc(a * can[cnt], cnt + 1, end) elif c == 3: if a / can[cnt] == end: print("YES") exit() calc(a / can[cnt], cnt + 1, end) N=int(input()) A=list(map(int, input().split())) import itertools for i in range(7,1<>j&1: cand.append(A[j]) if len(cand)<3: continue C=list(itertools.permutations(cand)) for can in C: calc(can[0],1,can[-1]) print("NO")