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() {
  string s;
  cin >> s;
  int flag = 1;
  int len = s.length();
  if (len % 2) {
    if (!(s[len / 2] == '3' || s[len / 2] == '7')) {
      cout << "No" << endl;
      return 0;
    }
  }
  for (int i = 0, j = len - 1; i < j; i++, j--) {
    if ((s[i] == s[j]) || (s[i] == '4' && s[j] == '6') ||
        (s[i] == '6' && s[j] == '4') || (s[i] == '5' && s[j] == '9') ||
        (s[i] == '9' && s[j] == '5') || (s[i] == '8' && s[j] == '0') ||
        (s[i] == '0' && s[j] == '8'))
      continue;
    else {
      flag = 0;
      break;
    }
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}