#include using namespace std; using ll = long long; int main() { int n; cin >> n; int e[12]; for (int i = 0; i < n; i++) { cin >> e[i]; } int l = (int)pow(3, n); int r = 0; for (int k = 0; k < l; k++) { int t = k; int s[3] = {}; for (int i = 0; i < n; i++) { int j = t % 3; t /= 3; s[j] += e[i]; } if (s[0] == s[1] && s[1] == s[2]) r = 1; } cout << (r ? "Yes" : "No") << endl; return 0; }