from itertools import product N = int(input()) E = list(map(int, input().split())) for p in product(range(3), repeat=N): group = [0, 0, 0] for e, g in zip(E, p): group[g] += e if group[0] == group[1] == group[2]: print("Yes") break else: print("No")