#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int ok = 0;
  for (int i = 0; i < n / 2; i++) {
    int j = n - i - 1;
    if (s[i] != s[j]) ok = 1;
  }
  if (ok == 0) {
    cout << "Yes" << endl;
    return 0;
  }
  return 0;
}
