Problem: 

Input

The only line of the input contains a string of digits. The length of the string is between 1 and 10, inclusive.

Output

Output "Yes" or "No".

Examples

Input

373


Output

Yes


Input

121


Output

No


Input

436


Output

Yes

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
const int MAXLEN = 10;
const int rev[10] = {8, -1, -1, 3, 6, 9, 4, 7, 0, 5};
char s[MAXLEN + 1];
int slen;
bool solve() {
  for (int i = 0; i <= slen - i - 1; ++i) {
    int a = s[i] - '0', b = s[slen - i - 1] - '0';
    if (rev[a] == -1 || rev[a] != b) return false;
  }
  return true;
}
void run() {
  scanf("%s", s);
  slen = strlen(s);
  printf("%s\n", solve() ? "Yes" : "No");
}
int main() {
  run();
  return 0;
}