#include using namespace std; using ll = long long; using P = pair; #define rep(i, n) for(ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() templatebool chmin(T&a, const T&b){if(a>b){a=b;return 1;}return 0;} templatebool chmax(T&a, const T&b){if(a> t; rep(houren,t){ ll n,tot=0; cin >> n; vector a(n); rep(i,n){ cin >> a[i]; tot += a[i]; } if(tot%3){ cout << "No" << endl; continue; } sort(all(a)); ll tot2 = 0; rep(i,n-2) tot2 += a[i]; if(tot>tot2*3) cout << "No" << endl; else cout << "Yes" << endl; } return 0; }