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