#include using namespace std; bool dfs(vector &E, int A, int B, int C, int p){ int N = E.size(); if (p == N){ if (A == B && B == C){ return true; } else { return false; } } else { if (dfs(E, A + E[p], B, C, p + 1)){ return true; } if (dfs(E, A, B + E[p], C, p + 1)){ return true; } if (dfs(E, A, B, C + E[p], p + 1)){ return true; } return false; } } int main(){ int N; cin >> N; vector E(N); for (int i = 0; i < N; i++){ cin >> E[i]; } if (dfs(E, 0, 0, 0, 0)){ cout << "Yes" << endl; } else { cout << "No" << endl; } }