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() {
  string s;
  getline(cin, s);
  int len = s.length();
  for (int i = 0; i < len; i++) {
    if (s[i] == '1' && s[len - 1 - i] == '1') {
      cout << "No" << endl;
      return 0;
    } else if (s[i] == '2' && s[len - 1 - i] == '2') {
      cout << "No" << endl;
      return 0;
    } else if (s[i] == '3' && s[len - 1 - i] != '3') {
      cout << "No" << endl;
      return 0;
    } else if (s[i] == '4' && s[len - 1 - i] != '6') {
      cout << "No" << endl;
      return 0;
    } else if (s[i] == '5' && s[len - 1 - i] != '9') {
      cout << "No" << endl;
      return 0;
    } else if (s[i] == '6' && s[len - 1 - i] != '4') {
      cout << "No" << endl;
      return 0;
    } else if (s[i] == '7' && s[len - 1 - i] != '7') {
      cout << "No" << endl;
      return 0;
    } else if (s[i] == '8' && s[len - 1 - i] != '0') {
      cout << "No" << endl;
      return 0;
    } else if (s[i] == '9' && s[len - 1 - i] != '5') {
      cout << "No" << endl;
      return 0;
    } else if (s[i] == '0' && s[len - 1 - i] != '8') {
      cout << "No" << endl;
      return 0;
    } else {
      continue;
    }
  }
  cout << "Yes" << endl;
  return 0;
}