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 a[15], cnt[15];
bool check(int x, int y) {
  if (x == 3 && y == 3) return true;
  if (x == 4 && y == 6) return true;
  if (x == 6 && y == 4) return true;
  if (x == 5 && y == 9) return true;
  if (x == 9 && y == 5) return true;
  if (x == 7 && y == 7) return true;
  if (x == 8 && y == 0) return true;
  if (x == 0 && y == 8) return true;
  return false;
}
int main() {
  char str[15];
  cin >> str;
  int len = strlen(str);
  for (int i = 0; i < len; i++) {
    int t1 = str[i] - 48;
    int t2 = str[len - i - 1] - 48;
    if (!check(t1, t2)) {
      puts("No");
      return 0;
    }
  }
  puts("Yes");
  return 0;
}