#include<iostream>
#include<string>
using namespace std;
int main()
{
string str,str1;
while (cin >> str)
{
for (int i = str.length() - 1; i >= 0; i--)
{
str1 += str[i];
}
if (str1 == str)
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
}
return 0;
}
#include
#include
using namespace std;
int main()
{
string str,str1;
while (cin >> str)
{
for (int i = str.length() - 1; i >= 0; i--)
{
str1 += str[i];
}
if (str1 == str)
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
}
return 0;
}
string str, str1;
while (cin >> str) {
str1 = "";
for ...
}