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[100007];
int f[1007][1007];
string s;
int main() {
  cin >> s;
  L = s.length();
  for (int i = 0; i < s.length(); i++) a[i + 1] = s[i] - 48;
  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[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;
}