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;
const long long MAX = 1e6 + 2;
void solve() {
  string a, b = "", ans = "Yes";
  cin >> a;
  string bara[] = {"8", "-", "-", "3", "6", "9", "4", "7", "0", "5"};
  for (int i = a.size() - 1; i > -1; i--) {
    b += bara[a[i] - '0'];
  }
  for (int i = 0; i < a.size(); i++) {
    if (a[i] != b[i]) {
      ans = "No";
      break;
    }
  }
  cout << ans;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  for (int i = 0; i < t; i++) {
    solve();
  }
}