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