#include <bits/stdc++.h>
int main() {
  int i, n, nguoc = 0, t;
  scanf("%d", &n);
  while (n % 10 == 0) n /= 10;
  t = n;
  while (n / 10 != 0) {
    nguoc = nguoc * 10 + n % 10;
    n /= 10;
  }
  nguoc = nguoc * 10 + n % 10;
  if (nguoc - t == 0) {
    printf("YES");
  } else
    printf("NO");
  return 0;
}
