#include <bits/stdc++.h>
int main() {
  long long int a;
  scanf("%lld", &a);
  while (a % 10 == 0) {
    a = a / 10;
  }
  int digits[9];
  int i, counter = 0;
  while (a > 0) {
    digits[counter] = a % 10;
    a = a / 10;
    counter++;
  }
  int test = 1;
  for (i = 0; i < counter; i++) {
    if (digits[i] != digits[counter - 1 - i]) {
      test = 0;
      break;
    }
  }
  if (test == 1) {
    printf("Yes");
  } else {
    printf("No");
  }
}
