#include <iostream>
#include <cstring>
using namespace std;
int main() {
int n;
scanf("%d", &n);
while(n--) {
char a[100010];
bool flag = true;
scanf("%s", a);
int len = strlen(a);
for(int i = 0; i < len / 2; i++) {
if(a[i] != a[len - i - 1]) {
printf("no\n");
flag = false;
break;
}
}
if(flag)
printf("yes\n");
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
int n, sum = 0;
cin>>n;
int res = n;
while(n) {
int t = n % 10;
n /= 10;
sum = sum * 10 + t;
}
if(sum == res)
cout<<"yes"<<endl;
else
cout<<"no"<<endl;
return 0;
}