#include using namespace std; int main() { int t; cin >> t; while(t--) { int n; cin>>n; int a[n]; int i,s=0; for(i=0;i>a[i]; s+=a[i]; } if(s%3==0) cout<<"Yes"<