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>
int main() {
  char s[11];
  scanf("%s", s);
  int i;
  for (i = 0; i < strlen(s); i++)
    if (s[i] == '1' || s[i] == '2') {
      printf("No");
      return 0;
    }
  if (strlen(s) % 2 == 1)
    if (!(s[strlen(s) / 2] == '7' || s[strlen(s) / 2] == '3')) {
      printf("No");
      return 0;
    }
  for (i = 0; i < strlen(s) / 2; i++) {
    if ((s[i] == '4' && s[strlen(s) - i - 1] != '6') ||
        (s[i] == '6' && s[strlen(s) - i - 1] != '4') ||
        (s[i] == '0' && s[strlen(s) - i - 1] != '8') ||
        (s[i] == '8' && s[strlen(s) - i - 1] != '0') ||
        (s[i] == '5' && s[strlen(s) - i - 1] != '9') ||
        (s[i] == '9' && s[strlen(s) - i - 1] != '5') ||
        (s[i] == '7' && s[strlen(s) - i - 1] != '7') ||
        (s[i] == '3' && s[strlen(s) - i - 1] != '3')) {
      printf("No");
      return 0;
    }
  }
  printf("Yes");
  return 0;
}