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