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;
bool mat[44][44];
int main() {
  char s[111];
  mat[3][3] = 1;
  mat[4][6] = 1;
  mat[5][9] = 1;
  mat[6][4] = 1;
  mat[7][7] = 1;
  mat[8][0] = 1;
  mat[9][5] = 1;
  mat[0][8] = 1;
  scanf("%s", s);
  int f = 0, n = strlen(s);
  for (int i = 0; i <= n / 2; i++) {
    int x = s[i] - '0', y = s[n - i - 1] - '0';
    if (mat[x][y] == 0) f |= 1;
  }
  puts(f ? "No" : "Yes");
  return 0;
}