#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  while (n % 10 == 0) {
    n = n / 10;
  }
  long long int k = n;
  long long int ne = 0;
  while (k) {
    ne = ne * 10 + k % 10;
    k = k / 10;
  }
  if (ne == n)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
