#include #include using namespace std; using namespace atcoder; using ll = long long; #define all(x) x.begin(),x.end() #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(void) { ll t; cin >> t; while(t--){ ll n; cin >> n; vector a(n); ll s = 0; rep(i, n){ cin >> a[i]; s += a[i]; } ll m = *max_element(all(a)); if(s % 3 == 0 && (3 * m <= s)){ cout << "Yes" << endl; } else cout << "No" << endl; continue; } return 0; }