#include using namespace std; #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define RREP(i, n) for (int i = (int)(n); i >= 0; i--) #define rep(i, a, n) for (int i = (a); i < (int)(n); i++) #define rrep(i, a, n) for (int i = (a); i >= (int)(n); i--) #define ALL(obj) (obj).begin(), (obj).end() #define rALL(obj) (obj).rbegin(), (obj).rend() using ll = long long; using vi = vector; using vii = vector>; using P = pair; int N; vector E; string tenToThree(int E) { string three = ""; REP(i,N) { three = to_string(E%3) + three; E /= 3; } return three; } int main() { cin >> N; E.resize(N); for (int i = 0; i < N; i++) cin >> E[i]; int n = pow(3,N); bool ans = false; REP(i,n) { int A = 0, B = 0, C = 0; // 3進数に変換 string T = tenToThree(i); REP(j,N) { char p = T[j]; if(p == '0') A += E[j]; if(p == '1') B += E[j]; if(p == '2') C += E[j]; } if(A == B && B == C) ans = true; } cout << (ans ? "Yes" : "No") << endl; return 0; }