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 a;
  cin >> a;
  string b[10] = {"23", "10", "30", "11", "13", "12", "31", "33", "32", "21"};
  string c;
  for (int i = 0; i < a.size(); i++) {
    c += b[a[i] - '0'];
  }
  string d = c;
  reverse(c.begin(), c.end());
  if (c == d) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}