#include
using namespace std;
int main(){
int N;
int odsum=0;
int evsum=0;
int n;
cin>>n;
for(int i=1;i<=n;i++){
cin>>N;
while(N!=0){
int rem=N%10;
N=N/10;
if(rem%2==0){
evsum=evsum+rem;
}
else if(rem%2!=0){
odsum=odsum+rem;
}
}
if(evsum%4==0||odsum%3==0){
cout<<"Yes"<<endl;
}
else{
cout<<"No";
}
}
}
https://online.codingblocks.com/app/player/246132/content/235737/10066/code-challenge