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;
map<char, char> H;
string s;
int flag = 1;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  H['3'] = '3';
  H['4'] = '6';
  H['5'] = '9';
  H['6'] = '4';
  H['7'] = '7';
  H['8'] = '0';
  H['9'] = '5';
  H['0'] = '8';
  cin >> s;
  for (int i = 0; i < s.length(); ++i)
    if (!H.count(s[i]))
      flag = 0;
    else if (H[s[i]] != s[s.length() - 1 - i])
      flag = 0;
  if (flag)
    cout << "Yes";
  else
    cout << "No";
}