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 N = 1e5 + 100;
char ss[N];
char str[N];
int main() {
  scanf("%s", ss + 1);
  int n = strlen(ss + 1);
  for (int i = 1; i <= n; i++) {
    if (ss[i] == '1' || ss[i] == '2') {
      puts("No");
      return 0;
    }
    if (ss[i] == '3') str[i] = '3';
    if (ss[i] == '4') str[i] = '6';
    if (ss[i] == '5') str[i] = '9';
    if (ss[i] == '6') str[i] = '4';
    if (ss[i] == '7') str[i] = '7';
    if (ss[i] == '8') str[i] = '0';
    if (ss[i] == '9') str[i] = '5';
    if (ss[i] == '0') str[i] = '8';
  }
  for (int i = 1; i <= n; i++) {
    if (ss[i] != str[n - i + 1]) {
      puts("No");
      return 0;
    }
  }
  puts("YES");
  return 0;
}