#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  while (cin >> x) {
    string str = "";
    while (x % 10 == 0) str += "0", x /= 10;
    long long y = 0, tmp, z = x;
    while (x != 0) {
      tmp = x % 10;
      x = x / 10;
      y = (y * 10) + tmp;
    }
    if (y == z)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
