#include <bits/stdc++.h>
int main() {
  long long n, l = 0, f;
  int i;
  scanf("%lld", &n);
  for (i = 0; i < 11; i++) {
    if (n % 10 == 0) {
      n = n / 10;
    } else {
      n = n;
    }
  }
  f = n;
  while (f > 0) {
    l = l * 10 + f % 10;
    f = f / 10;
  }
  if (l == n) {
    printf("YES");
  } else {
    printf("NO");
  }
  return 0;
}
