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