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;
int p[10] = {1, 100, 100, 0, 2, 3, -2, 0, -1, -3};
int n;
char s[21];
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  for (int i = 1; i <= n / 2 + 1; i++) {
    int temp = s[i] - '0';
    if (p[temp] == 0 && s[n + 1 - i] - '0' != temp) {
      printf("No\n");
      return 0;
    }
    if (p[temp] + p[s[n + 1 - i] - '0'] != 0) {
      printf("No\n");
      return 0;
    }
  }
  printf("Yes\n");
  return 0;
}