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;
int main() {
  ios::sync_with_stdio(false);
  vector<pair<long long int, long long int>> a = {
      {1, 2}, {3, 3}, {7, 7}, {4, 6}, {2, 1},
      {6, 4}, {9, 5}, {8, 0}, {0, 8}, {5, 9}};
  string s;
  cin >> s;
  long long int N;
  N = s.size();
  bool ok = true;
  for (long long int i = (0); i < (long long int)(N); ++i) {
    long long int k = N - 1 - i;
    for (long long int j = (0); j < (long long int)(a.size()); ++j) {
      if (a[j].first == s[i] - '0') {
        if (a[j].second != s[k] - '0') {
          ok = false;
        }
        break;
      }
    }
  }
  cout << (ok ? "Yes" : "No") << endl;
  return 0;
}