n = int(input()) e = list(map(int,input().split())) for i in range(3**n): c = [0]*3 for j in range(n): c[i%3] += e[j] i //= 3 if c[0]==c[1]==c[2]: print('Yes') break else: print('No')