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 l, a[10000 + 5], f[100 + 5][100 + 5];
string st;
int main() {
  cin >> st;
  l = st.size();
  for (int i = 0; i < st.size(); i++) a[i + 1] = st[i] - 48;
  f[3][3] = 1;
  f[4][6] = 1;
  f[5][9] = 1;
  f[7][7] = 1;
  f[8][0] = 1;
  f[3][3] = 1;
  f[6][4] = 1;
  f[9][5] = 1;
  f[7][7] = 1;
  f[0][8] = 1;
  for (int i = 1; i <= l / 2 + 1; i++)
    if (f[a[i]][a[l - i + 1]] == 0) {
      cout << "No";
      return 0;
    }
  cout << "Yes";
  return 0;
}