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 big = long long;
using namespace std;
bool match(char x, char y) {
  if (x > y) {
    swap(x, y);
  }
  return (x == '4' && y == '6') || (x == '3' && y == '3') ||
         (x == '5' && y == '9') || (x == '7' && y == '7') ||
         (x == '0' || y == '8');
}
bool is(char x) { return x == '3' || x == '7'; }
bool ck(const string &a) {
  for (int i = 0; i + i < a.size(); ++i) {
    if (!match(a[i], a[a.size() - i - 1])) {
      return false;
    }
  }
  if (a.size() & 1) {
    return is(a[a.size() / 2]);
  }
  return true;
}
int main() {
  string a;
  cin >> a;
  cout << (ck(a) ? "Yes" : "No") << endl;
}