#include <bits/stdc++.h>
using namespace std;
string CHECK(long long n) {
  long long t, temp = n, zero = 0, ans = 0, flag = 0;
  while (temp != 0) {
    t = temp % 10;
    if (t == 0 && flag == 0)
      zero++;
    else {
      flag = 1;
      ans *= 10;
      ans += t;
    }
    temp /= 10;
  }
  if (zero != 0) {
    while (zero != 0) {
      ans *= 10;
      zero--;
    }
  }
  if (n == ans)
    return "YES";
  else
    return "NO";
}
int main() {
  long long n;
  cin >> n;
  cout << CHECK(n) << endl;
}
