#include #include
using namespace std;
string s;
bool Rev(string s){ int len = s.length(); for (int i=0;i<=len-1;i++) if (s[i]!=s[len-i-1]) return 0; return 1; }
int main(){ cin >> s;
if (Rev(s)) cout << "yes"; else cout << "no";
}
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your HFOJ universal account