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