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