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;
string st;
int a[10000];
bool pan[10][10];
int main() {
  pan[3][3] = 1;
  pan[4][6] = 1, pan[6][4] = 1;
  pan[5][9] = 1, pan[9][5] = 1;
  pan[7][7] = 1;
  pan[8][0] = 1, pan[0][8] = 1;
  cin >> st;
  for (int i = 0; i < st.size(); i++) a[i + 1] = st[i] - '0';
  for (int i = 1; i <= st.size(); i++)
    if (!pan[a[i]][a[st.size() + 1 - i]]) {
      puts("No");
      return 0;
    }
  puts("Yes");
}