water~~~
#include <stdio.h>
#include <string.h>
#include <iostream>
#define MAX 10001
using namespace std;
int main(int argc, char *argv[]) {
int n;
scanf("%d",&n);
while(n--)
{
char s[MAX];
cin>>s;
char *p1;
char *p2;
p1 = s;
p2 = s + strlen(s) - 1;
while(p1 < p2)
{
if(*p1 != *p2)break;
p1++;
p2--;
}
if(p1 >= p2)
printf("yes\n");
else
printf("no\n");
}
return 0;
}