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;
string s, touchy;
map<char, char> mp;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  mp['4'] = '6';
  mp['6'] = '4';
  mp['5'] = '9';
  mp['9'] = '5';
  mp['8'] = '0';
  mp['0'] = '8';
  mp['3'] = '3';
  mp['1'] = 'r';
  mp['2'] = 'r';
  mp['7'] = '7';
  cin >> s;
  for (int i = 0; i <= s.size() / 2; i++)
    if (mp[s[i]] != s[s.size() - i - 1]) {
      cout << "NO";
      return 0;
    }
  cout << "YES";
  return 0;
}