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;
bool judged(int x) { return x == 1 || x == 2; }
bool judge(int x, int y) {
  if (x > y) swap(x, y);
  if (x == 7) return y == 7;
  if (x == 3) return y == 3;
  if (x == 4) return y == 6;
  if (x == 5) return y == 9;
  if (x == 0) return y == 8;
  return false;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  bool flag = true;
  cin >> s;
  int len = s.length();
  for (int i = 0; i < len; ++i) {
    if (judged(s[i] - '0')) {
      flag = false;
      break;
    }
  }
  for (int i = 0, j = len - 1; flag && i <= j; i++, j--) {
    if (!judge(s[i] - '0', s[j] - '0')) {
      flag = false;
    }
  }
  if (flag)
    puts("Yes");
  else
    puts("No");
  return 0;
}