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