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;
const long long INF = (sizeof(long long) == 8) ? 1e18 : 1e9;
int main() {
  srand(time(0));
  ios::sync_with_stdio(0);
  string s, s2;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if ((s[i] == '1') || (s[i] == '2')) {
      cout << "No";
      return 0;
    }
  }
  s2 = s;
  reverse(s2.begin(), s2.end());
  for (int i = 0; i < s2.size(); i++) {
    switch (s2[i]) {
      case '4':
        s2[i] = '6';
        break;
      case '6':
        s2[i] = '4';
        break;
      case '5':
        s2[i] = '9';
        break;
      case '9':
        s2[i] = '5';
        break;
      case '0':
        s2[i] = '8';
        break;
      case '8':
        s2[i] = '0';
        break;
    }
  }
  if (s == s2) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  cout << endl;
  return 0;
}