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 main() {
  int s[] = {8, -1, -1, -1, 6, 9, 4, -1, 0, 5};
  char st[12313];
  scanf("%s", st + 1);
  int n = strlen(st + 1);
  for (int i = 1, j = n; i < j; i++, j--)
    if (st[i] != st[j] && s[st[i] - '0'] != st[j] - '0') return puts("No") * 0;
  if (n & 1) {
    if (st[n / 2 + 1] != '3' && st[n / 2 + 1] != '7') return puts("No") * 0;
  }
  puts("YES");
  return 0;
}