#include<iostream>
#include <cstring>
#include <algorithm>
using namespace std;
string s;
bool is_huiwen(string s)
{
for(int i=0,j=s.size()-1;i<j;i++,j--)
{
if(s[i]!=s[j]) return false;
}
return true;
}
int main()
{
cin>>s;
if(is_huiwen(s)) cout<<"true"<<endl;
else cout<<"false"<<endl;
return 0;
}