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;
char s[11];
int a[10][2][2] = {{{0, 1}, {1, 1}}, {{1, 0}, {0, 0}}, {{1, 0}, {1, 0}},
                   {{1, 1}, {0, 0}}, {{1, 1}, {0, 1}}, {{1, 0}, {0, 1}},
                   {{1, 1}, {1, 0}}, {{1, 1}, {1, 1}}, {{1, 0}, {1, 1}},
                   {{0, 1}, {1, 0}}};
int i, j, k, len, b[2][25];
int main() {
  scanf("%s", s);
  len = strlen(s);
  for (i = 0; i < len; i++)
    for (j = 0; j < 2; j++)
      for (k = 0; k < 2; k++) b[k][2 * i + 1 + j] = a[s[i] - 48][k][j];
  for (i = 0; i < 2; i++)
    for (j = 1; j <= len; j++)
      if (b[i][j] != b[i][2 * len - j + 1]) {
        puts("No");
        return 0;
      }
  puts("Yes");
  return 0;
}