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;
string ss[] = {"23", "10", "30", "11", "13", "12", "31", "33", "32", "21"};
char str[100];
int main() {
  scanf("%s", str);
  string s = "";
  for (int i = 0; str[i]; i++) {
    s += ss[str[i] - '0'];
  }
  string _s = s;
  reverse(_s.begin(), _s.end());
  if (s == _s)
    printf("Yes");
  else
    printf("No");
  return 0;
}