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[15], s1[15];
int main() {
  cin >> s;
  for (int i = 0; i < strlen(s); i++) {
    if (s[i] == '3') {
      s1[i] = '3';
    }
    if (s[i] == '7') {
      s1[i] = '7';
    }
    if (s[i] == '4') {
      s1[i] = '6';
    }
    if (s[i] == '6') {
      s1[i] = '4';
    }
    if (s[i] == '5') {
      s1[i] = '9';
    }
    if (s[i] == '9') {
      s1[i] = '5';
    }
    if (s[i] == '8') {
      s1[i] = '0';
    }
    if (s[i] == '0') {
      s1[i] = '8';
    }
  }
  for (int i = 0; i < strlen(s); i++) {
    if (s[i] == '1' || s[i] == '2' || s[i] != s1[strlen(s) - i - 1]) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}