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;
string a1[10] = {"01", "10", "10", "11", "11", "10", "11", "11", "10", "01"};
string a2[10] = {"11", "00", "10", "00", "01", "01", "10", "11", "11", "10"};
int main() {
  string ins, outs1, outs2;
  cin >> ins;
  for (int i = 0; i < ins.size(); i++) {
    int x = ins[i] - '0';
    outs1 += a1[x];
    outs2 += a2[x];
  }
  int l1 = outs1.size(), l2 = outs2.size();
  for (int i = 0; i < l1; i++) {
    int j = l1 - i - 1;
    if (outs1[i] != outs1[j]) {
      printf("No");
      return 0;
    }
  }
  for (int i = 0; i < l2 / 2; i++) {
    int j = l2 - i - 1;
    if (outs2[i] != outs2[j]) {
      printf("No");
      return 0;
    }
  }
  printf("Yes");
  return 0;
}