n = int(input()) e = list(map(int, input().split())) def Base_10_to_n(X, n): if (int(X/n)): return Base_10_to_n(int(X/n), n)+str(X%n) return str(X%n) for i in range(3 ** n): x = list(Base_10_to_n(i, 3)) a = [] b = [] c = [] for j, k in enumerate(x): if k == '0': a.append(e[j]) elif k == '1': b.append(e[j]) else: c.append(e[j]) for j in range(n - len(x)): a.append(e[-(j + 1)]) # check = [] # check.append(a) # check.append(b) # check.append(c) # print(check) if not a or not b or not c: continue else: if sum(a) == sum(b) and sum(b) == sum(c): print('Yes') exit() print('No')