#include <bits/stdc++.h>
using namespace std;
int x, n;
bool ans;
char str[15];
int main() {
  while (~scanf("%d", &x)) {
    while (x % 10 == 0) x /= 10;
    n = 0;
    for (int i = 0; x; i++) {
      str[n++] = x % 10;
      x /= 10;
    }
    ans = true;
    for (int i = 0; i < n / 2; i++) {
      if (str[i] != str[n - 1 - i]) ans = false;
    }
    if (ans)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
