bool is_pal(string s, int l, int r){
if( l >= r ) return true; // 填空②、③:长度0或1是回文
if( s[l] != s[r] ) return false; // 填空④:首尾不等
return is_pal(s, l + 1, r - 1);
}
int main(){
string s;
cin >> s;
if( is_pal(s, 0, s.size()-1) ){ // 填空①:从整个字符串开始判断
cout << "Yes";
}
else{
cout << "No";
}
return 0;
}