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 f[14][14];
char s[15];
int a[15];
int main() {
  scanf("%s", s);
  int len = strlen(s);
  for (int i = 0; i < len; i++) {
    a[i + 1] = s[i] - '0';
  }
  f[4][6] = 1, f[6][4] = 1;
  f[5][9] = 1, f[9][5] = 1;
  f[8][0] = 1, f[0][8] = 1;
  f[3][3] = 1, f[7][7] = 1;
  for (int i = 1; i <= len; i++) {
    if (f[a[i]][a[len - i + 1]] == 0) {
      puts("No");
      return 0;
    }
  }
  puts("Yes");
  return 0;
}