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 y, f[10][10];
string x;
bool hui(string a) {
  int tot = a.size();
  for (int i = 0; i <= tot / 2; i++) {
    if (f[a[i] - '0'][a[tot - i - 1] - '0'] == 0) {
      return false;
    }
  }
  return true;
}
int main() {
  cin >> x;
  f[3][3] = 1;
  f[4][6] = 1;
  f[6][4] = 1;
  f[5][9] = 1;
  f[9][5] = 1;
  f[7][7] = 1;
  f[8][0] = 1;
  f[0][8] = 1;
  if (hui(x)) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}