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;
inline void base() { ios_base::sync_with_stdio(false); }
inline void tie() { cin.tie(0); }
string kata;
bool boleh;
int main() {
  base();
  boleh = false;
  cin >> kata;
  for (int i = 0; i < kata.length(); i++) {
    if (kata[i] == '3' && kata[kata.length() - i - 1] == '3') {
      boleh = true;
    } else if (kata[i] == '4' && kata[kata.length() - i - 1] == '6') {
      boleh = true;
    } else if (kata[i] == '6' && kata[kata.length() - i - 1] == '4') {
      boleh = true;
    } else if (kata[i] == '5' && kata[kata.length() - i - 1] == '9') {
      boleh = true;
    } else if (kata[i] == '9' && kata[kata.length() - i - 1] == '5') {
      boleh = true;
    } else if (kata[i] == '7' && kata[kata.length() - i - 1] == '7') {
      boleh = true;
    } else if (kata[i] == '8' && kata[kata.length() - i - 1] == '0') {
      boleh = true;
    } else if (kata[i] == '0' && kata[kata.length() - i - 1] == '8') {
      boleh = true;
    } else {
      boleh = false;
      break;
    }
  }
  if (boleh) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}