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