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() {
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) s[i] = s[i] - '0';
  int ok = 1, i, j;
  for (i = 0, j = s.size() - 1; i <= j; i++, j--) {
    if (s[i] == 1 || s[j] == 1) ok = 0;
    if (s[i] == 2 || s[j] == 2) ok = 0;
    if (s[i] == 3 && s[j] != 3) ok = 0;
    if (s[i] != 3 && s[j] == 3) ok = 0;
    if (s[i] == 4 && s[j] != 6) ok = 0;
    if (s[i] != 4 && s[j] == 6) ok = 0;
    if (s[i] == 6 && s[j] != 4) ok = 0;
    if (s[i] != 6 && s[j] == 4) ok = 0;
    if (s[i] == 5 && s[j] != 9) ok = 0;
    if (s[i] != 5 && s[j] == 9) ok = 0;
    if (s[i] == 9 && s[j] != 5) ok = 0;
    if (s[i] != 9 && s[j] == 5) ok = 0;
    if (s[i] == 7 && s[j] != 7) ok = 0;
    if (s[i] != 7 && s[j] == 7) ok = 0;
    if (s[i] == 8 && s[j] != 0) ok = 0;
    if (s[i] != 8 && s[j] == 0) ok = 0;
    if (s[i] == 0 && s[j] != 8) ok = 0;
    if (s[i] != 0 && s[j] == 8) ok = 0;
  }
  puts(ok ? "Yes" : "No");
  return 0;
}