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>
const int maxN = (int)1e4 + 7;
const int maxM = (int)1e5 + 7;
const int maxT = (int)1e6 + 7;
using namespace std;
map<char, char> H;
string s;
int flag = 1;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  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.size(); i++)
    if (!H.count(s[i]))
      flag = 0;
    else if (H[s[i]] != s[s.size() - 1 - i])
      flag = 0;
  if (flag)
    cout << "Yes";
  else
    cout << "No";
}