#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[10001];
  cin >> a;
  int i, j = strlen(a) - 1;
  for (i = 0; i < strlen(a) / 2; i++, j--)
    if (a[i] != a[j]) {
      printf("No\n");
      return 0;
    }
  printf("Yes\n");
  return 0;
}
