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() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int n = s.size();
  if (s.find('1') != -1 || s.find('2') != -1) {
    cout << "No";
    return 0;
  }
  for (int i = 0; i < n / 2; i++) {
    if (s[i] == '3' || s[i] == '7') {
      if (s[n - i - 1] != s[i]) {
        cout << "No";
        return 0;
      }
    }
    if (s[i] == '4' && s[n - i - 1] != '6') {
      cout << "No";
      return 0;
    }
    if (s[i] == '6' && s[n - i - 1] != '4') {
      cout << "No";
      return 0;
    }
    if (s[i] == '5' && s[n - i - 1] != '9') {
      cout << "No";
      return 0;
    }
    if (s[i] == '9' && s[n - i - 1] != '5') {
      cout << "No";
      return 0;
    }
    if (s[i] == '8' && s[n - i - 1] != '0') {
      cout << "No";
      return 0;
    }
    if (s[i] == '0' && s[n - i - 1] != '8') {
      cout << "No";
      return 0;
    }
  }
  if (s.size() % 2 == 1) {
    if (s[(n / 2)] != '3' && s[(n / 2)] != '7') {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
}