#include using namespace std; int e[20]; bool dfs(int i,int n,int a,int b,int c){ if(i==n){ if(a==b && b==c) return true; return false; }else{ bool f = false; f |= dfs(i + 1,n,a + e[i],b,c); f |= dfs(i + 1,n,a,b + e[i],c); f |= dfs(i + 1,n,a,b,c + e[i]); return f; } } int main(){ int i,n; cin >> n; for(i=0;i> e[i]; if(dfs(0,n,0,0,0)) cout << "Yes" << endl; else cout << "No" << endl; }