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