#include <iostream>
#include<cstring>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n;
cin>>n;
char str[100];
while(n--){
cin>>str;
int length=strlen(str);
int flag=1;
for(int i=0;i<length/2;i++){//遍历左子区间
if(str[i]!=str[length-i-1]){//对应位置的字符不相等时
flag=0;
}
}
if(flag==1){
cout<<"yes"<<endl;
}
else{
cout<<"no"<<endl;
}
}
return 0;
}
祝愿大家顺利AC!