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 a[10005], f[105][105];
string st;
int main() {
  cin >> st;
  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 <= st.size() / 2 + 1; i++)
    if (f[a[i]][a[st.size() - i + 1]] == 0) return printf("No"), 0;
  printf("Yes");
  return 0;
}