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() {
  int i, j;
  char s[1210];
  scanf("%s", s);
  for (i = 0, j = strlen(s) - 1; i <= j; ++i, --j) {
    if (i == j) {
      if (s[i] != '3' && s[j] != '7') break;
    } else {
      if (s[i] == '3' && s[j] == '3') continue;
      if (s[i] == '7' && s[j] == '7') continue;
      if (s[i] == '4' && s[j] == '6') continue;
      if (s[i] == '6' && s[j] == '4') continue;
      if (s[i] == '5' && s[j] == '9') continue;
      if (s[i] == '9' && s[j] == '5') continue;
      if (s[i] == '0' && s[j] == '8') continue;
      if (s[i] == '8' && s[j] == '0') continue;
      break;
    }
  }
  printf("%s\n", (i > j) ? "Yes" : "No");
  return 0;
}