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() {
  ios::sync_with_stdio(0);
  int H[256] = {};
  H['0'] = '8';
  H['1'] = '*';
  H['2'] = '*';
  H['3'] = '3';
  H['4'] = '6';
  H['5'] = '9';
  H['6'] = '4';
  H['7'] = '7';
  H['8'] = '0';
  H['9'] = '5';
  string s, r;
  cin >> s;
  r = s;
  for (auto& ch : r) ch = H[ch];
  reverse(r.begin(), r.end());
  cout << (s == r ? "Yes" : "No");
}