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;
char str[100001];
bool ok;
bool check(char a, char b) {
  int x = a - '0', y = b - '0';
  if (x > y) swap(x, y);
  if (x == 3 && y == 3) return true;
  if (x == 4 && y == 6) return true;
  if (x == 5 && y == 9) return true;
  if (x == 7 && y == 7) return true;
  if (x == 0 && y == 8) return true;
  return false;
}
int main() {
  scanf("%s", str);
  int n = (int)strlen(str);
  for (int i = 0; i < n; i++)
    if (check(str[i], str[n - 1 - i]) == false) ok = true;
  if (ok)
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}