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() {
  char v[10000];
  scanf("%s", v);
  int l = strlen(v);
  for (int i = 0; i <= l / 2; ++i) {
    if (v[i] - '0' == 3 && v[l - i - 1] - '0' == 3) continue;
    if (v[i] - '0' == 7 && v[l - i - 1] - '0' == 7) continue;
    if (v[i] - '0' == 4 && v[l - i - 1] - '0' == 6) continue;
    if (v[i] - '0' == 6 && v[l - i - 1] - '0' == 4) continue;
    if (v[i] - '0' == 5 && v[l - i - 1] - '0' == 9) continue;
    if (v[i] - '0' == 9 && v[l - i - 1] - '0' == 5) continue;
    if (v[i] - '0' == 8 && v[l - i - 1] - '0' == 0) continue;
    if (v[i] - '0' == 0 && v[l - i - 1] - '0' == 8) continue;
    return printf("No\n"), 0;
  }
  return printf("Yes\n"), 0;
}