import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline def from_read(): return [int(x) for x in read().splitlines()] def from_readline(): return [int(x) for x in readline().split()] def read_matrix(N, M): matrix = [None for i in range(N)] for i in range(N): matrix[i] = from_readline() return matrix def solve(N, E): for n in range(pow(3, N)): P = [0, 0, 0] for i in range(N): P[n % 3] += E[i] n //= 3 if P[0] == P[1] and P[1] == P[2]: return "Yes" return "No" def main(): N = int(readline()) E = from_readline() print(solve(N, E)) if __name__ == "__main__": main()