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 int inf = 0x3fffffff;
const int mod = 1e9 + 7;
const int dx[4] = {1, -1, 0, 0};
const int dy[4] = {0, 0, 1, -1};
const double eps = 1e-8;
const int maxn = 1e5 + 7;
bool f(char a, char b) {
  if (a == '3' && b == '3') return 1;
  if (a == '4' && b == '6') return 1;
  if (a == '6' && b == '4') return 1;
  if (a == '5' && b == '9') return 1;
  if (a == '9' && b == '5') return 1;
  if (a == '7' && b == '7') return 1;
  if (a == '8' && b == '0') return 1;
  if (a == '0' && b == '8') return 1;
  return 0;
}
int main() {
  string x;
  cin >> x;
  int len = x.size() - 1;
  int flag = 0;
  for (int i = 0; i <= len; i++) {
    if (f(x[i], x[len - i]))
      continue;
    else
      flag = 1;
  }
  if (flag) {
    puts("No");
  } else {
    puts("Yes");
  }
  return 0;
}