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 a[100];
int mp[] = {8, -1, -2, 3, 6, 9, 4, 7, 0, 5};
int main() {
  cin >> a;
  int len = strlen(a);
  int flag = 0;
  for (int i = 0; i < len; i++) {
    if (a[i] - 48 != mp[a[len - 1 - i] - 48]) flag = 1;
  }
  if (!flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}