#include <bits/stdc++.h>
long long int power(int x, int y) {
  int i = 1, res = 1;
  while (i <= y) {
    res *= x;
    i++;
  }
  return res;
}
int main() {
  char s[200];
  long long int n, num, i, sum = 0, digit = 0, digit_rev = 0;
  scanf("%lld", &n);
  num = n;
  while (num) {
    num /= 10;
    digit++;
  }
  i = digit - 1;
  num = n;
  while (i >= 0) {
    sum += num % 10 * power(10, i);
    num /= 10;
    i--;
  }
  num = sum;
  while (num) {
    num /= 10;
    digit_rev++;
  }
  if (digit == digit_rev && n == sum)
    printf("YES");
  else if (digit != digit_rev && sum == n / power(10, digit - digit_rev)) {
    printf("YES");
  } else
    printf("NO");
  return 0;
}
