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;
using ll = long long;
const int INF = numeric_limits<int>::max();
int arr[10] = {8, -1, -1, 3, 6, 9, 4, 7, 0, 5};
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  string n;
  cin >> n;
  if (n.size() == 1u) {
    return std::cout << (n[0] == '3' || n[0] == '7' ? "Yes" : "No"), 0;
    ;
  }
  for (int i = 0; i < (n.size() >> 1); ++i) {
    if (n[i] == '1' || n[i] == '2' ||
        arr[n[i] - '0'] != n[n.size() - i - 1] - '0') {
      return std::cout << ("No"), 0;
      ;
    }
  }
  if (n.size() & 1) {
    return std::cout << (n[n.size() >> 1] == '3' || n[n.size() >> 1] == '7'
                             ? "Yes"
                             : "No"),
           0;
    ;
  }
  cout << "Yes";
  return 0;
}