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