#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char d[101];
int n;
int s,e;
bool ok;
(cin>>n).get();
while(n--)
{
cin.getline(d,101);
s=0;
e=strlen(d)-1;
ok=true;
while(s<e)
{
if(d[s]!=d[e])
{
ok=false;
break;
}
s++;
e--;
}
if(ok==true)
{
cout<<"yes\n";
}
else
{
cout<<"no\n";
}
}
return 0;
}