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 mirror[] = "8??3694705";
int main() {
  string s;
  cin >> s;
  string s2 = s;
  reverse(s2.begin(), s2.end());
  for (char& c : s2) {
    c = mirror[c - '0'];
  }
  cout << (s == s2 ? "Yes" : "No") << endl;
  return 0;
}