#include <iostream>
#include<vector>
using namespace std;
int main() {
int t;
cin>>t;
for(int i=0;i<t;i++){
string x;
cin>>x;
int x1=0,x0=0;
for(int j=0;x[j]!='\0';j++){
if(x[j]=='1') x1++;
else if(x[j]=='0') x0++;
}if(x0%2==0||x1%2==0) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
return 0;
}

京公网安备 11010502036488号