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[256];
string s;
int main() {
  a['0'] = '8';
  a['1'] = '.';
  a['2'] = '.';
  a['3'] = '3';
  a['4'] = '6';
  a['5'] = '9';
  a['6'] = '4';
  a['7'] = '7';
  a['8'] = '0';
  a['9'] = '5';
  cin >> s;
  if (s.size() & 1 && a[s[s.size() / 2]] != s[s.size() / 2]) {
    cout << "No\n";
    return 0;
  }
  for (int i = 0; i < s.size() / 2; ++i) {
    if (a[s[i]] != s[s.size() - 1 - i]) {
      cout << "No\n";
      return 0;
    }
  }
  cout << "Yes\n";
  return 0;
}