#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int t; cin>>t; while(t--) { int n,sum=0; cin>>n; int a[n]; for(int i=0;i>a[i]; sum=sum+a[i]; } if(sum%3==0) cout<<"Yes"<