#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, c = 0, d = 0, l, l1;
  char st[102];
  gets(st);
  l = strlen(st);
  for (i = l - 1; i >= 0; i--) {
    if (st[i] == '0')
      c++;
    else if (st[i] != '0')
      break;
  }
  l1 = l - c;
  for (i = 0, j = l1 - 1; i < l1; i++, j--) {
    if (st[i] == st[j]) {
      d++;
    }
  }
  if (d == l1)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
