#include using namespace std; #define fs(n) fixed << setprecision(n); #define mp(a, b) make_pair(a, b); using ll = long long; using ld = long double; int main(){ int n; cin >> n; vector e(n); for(int i = 0; i < n; i++) cin >> e[i]; for(int i = 0; i < pow(3, n); i++){ vector sum(3, 0); for(int j = 0; j < n; j++){ sum[(int)(i / pow(3, j)) % 3] += e[j]; } if(sum[0] == sum[1] && sum[1] == sum[2]){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; }