N = int(input()) E = list(map(int, input().split())) P = sum(E) if P % 3: print('No') exit() P //= 3 Group = [] GroupSet = set() for i in range(1 << N): p = 0 for j in range(N): if i >> j & 1: p += E[j] if p == P: Group.append(i) GroupSet.add(i) All = (1 << N) - 1 for i in range(len(Group)): for j in range(i): if Group[i] & Group[j] == 0 and All - Group[i] - Group[j] in GroupSet: print('Yes') exit() print('No')