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>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
const int N = 1e5 + 10, INF = 0x3f3f3f3f, MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  map<char, char> mp;
  mp['3'] = mp['3'] = 'A';
  mp['4'] = mp['6'] = 'B';
  mp['5'] = mp['9'] = 'C';
  mp['7'] = mp['7'] = 'D';
  mp['8'] = mp['0'] = 'E';
  string s;
  while (cin >> s) {
    bool ok = true;
    for (int i = 0; ok && i < (s.size() + 1) / 2; ++i) {
      char a = s[i], b = s[s.size() - i - 1];
      if (a == b && (a == '3' || a == '7')) {
      } else if (a != b && mp.count(a) && mp.count(b) && mp[a] == mp[b]) {
      } else
        ok = false;
    }
    cout << (ok ? "Yes" : "No") << endl;
  }
  return 0;
}