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;
template <typename T>
void ins(set<T> &s, T a) {
  s.insert(a);
}
template <typename T1, typename... T2>
void ins(set<T1> &s, T1 a, T2... b) {
  ins(s, a);
  ins(s, b...);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  for (int l(0), r(s.size() - 1); l <= r; ++l, --r) {
    if (s[l] == '1' || s[l] == '2') {
      cout << "No";
      return 0;
    }
    if (s[l] == '3' || s[l] == '7') {
      if (s[l] != s[r]) {
        cout << "No";
        return 0;
      }
    }
    if (s[l] == '4')
      if (s[r] != '6') {
        cout << "No";
        return 0;
      }
    if (s[l] == '5')
      if (s[r] != '9') {
        cout << "No";
        return 0;
      }
    if (s[l] == '8')
      if (s[r] != '0') {
        cout << "No";
        return 0;
      }
  }
  cout << "Yes";
}