#include <iostream>
#include <cstring>
#include <string>
#include <cstdio>
#include <algorithm>
#include <stack>
#include <math.h>
using namespace std;
#define N 110
string s;
int main()
{
int t;
cin >> t;
getchar();
for (int i = 1; i <= t; i++)
{
cin >> s;
int l = s.length(), f = 1;
for (int i = 0, j = l - 1; i < l / 2; i++, j--)
{
if (s[i] != s[j])
{
f = 0;
break;
}
}
if (f) cout << "yes" << endl;
else cout << "no" << endl;
}
}
#include <cstring>
#include <string>
#include <cstdio>
#include <algorithm>
#include <stack>
#include <math.h>
using namespace std;
#define N 110
string s;
int main()
{
int t;
cin >> t;
getchar();
for (int i = 1; i <= t; i++)
{
cin >> s;
int l = s.length(), f = 1;
for (int i = 0, j = l - 1; i < l / 2; i++, j--)
{
if (s[i] != s[j])
{
f = 0;
break;
}
}
if (f) cout << "yes" << endl;
else cout << "no" << endl;
}
}