#include <bits/stdc++.h>
using namespace std;
string s, s2, s3;
int main() {
  cin >> s;
  int flag = 1, len = s.size();
  for (int i = len - 1; i >= 0; i--) {
    int L = i, R = len - i - 1;
    if (L > R) break;
    if (s[L] == s[R])
      flag = 0;
    else {
      flag = 1;
      break;
    }
  }
  if (!flag) {
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
  return 0;
}
