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 s[113];
int main() {
  scanf("%s", s);
  int len = strlen(s);
  for (int i = 0; i < len; i++) {
    if (i == len - i - 1) {
      if (s[i] - '0' == 3 || s[i] - '0' == 7)
        ;
      else {
        cout << "No" << endl;
        return 0;
      }
      cout << "Yes" << endl;
      return 0;
    }
    if (s[i] - '0' == 4 && s[len - i - 1] - '0' == 6) continue;
    if (s[i] - '0' == 6 && s[len - i - 1] - '0' == 4) continue;
    if (s[i] - '0' == 3 && s[len - i - 1] - '0' == 3) continue;
    if (s[i] - '0' == 7 && s[len - i - 1] - '0' == 7) continue;
    if (s[i] - '0' == 5 && s[len - i - 1] - '0' == 9) continue;
    if (s[i] - '0' == 8 && s[len - i - 1] - '0' == 0) continue;
    if (s[i] - '0' == 0 && s[len - i - 1] - '0' == 8) continue;
    if (s[i] - '0' == 9 && s[len - i - 1] - '0' == 5) continue;
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
}