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