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[105];
int check(int x) {
  if (x == 3) return 3;
  if (x == 4) return 6;
  if (x == 5) return 9;
  if (x == 6) return 4;
  if (x == 7) return 7;
  if (x == 8) return 0;
  if (x == 9) return 5;
  if (x == 0) return 8;
  return -1;
}
int main() {
  scanf("%s", str + 1);
  int len = strlen(str + 1);
  bool pd = 1;
  for (int i = 1; i <= len; i++) {
    if (check(str[i] - '0') != str[len - i + 1] - '0') pd = 0;
  }
  if (!pd)
    puts("No");
  else
    puts("Yes");
}