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;
const string key = "8aa3694705";
string s, t;
int main() {
  cin >> s;
  t = s;
  reverse(t.begin(), t.end());
  for (int i = 0; i < s.length(); i++)
    if (key[s[i] - '0'] != t[i]) {
      cout << "No";
      return 0;
    }
  cout << "Yes";
  return 0;
}