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>
std::string s, r;
bool f[11][11];
int main(void) {
  f[3][3] = f[4][6] = f[6][4] = f[5][9] = f[9][5] = f[7][7] = f[8][0] =
      f[0][8] = true;
  std::cin >> r;
  s = r;
  std::reverse(r.begin(), r.end());
  int len = s.length();
  for (int i = 0; i < len; ++i)
    if (!f[s[i] - '0'][r[i] - '0']) {
      std::cout << "No";
      return 0;
    }
  std::cout << "Yes";
  return 0;
}