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 main() {
  string g, p;
  cin >> g;
  p = g;
  reverse(p.begin(), p.end());
  for (int i = 0; i < g.size(); i++) {
    g[i] -= 48;
    p[i] -= 48;
    if (g[i] == 3 && p[i] == 3)
      ;
    else if (g[i] == 7 && p[i] == 7)
      ;
    else if (g[i] == 4 && p[i] == 6)
      ;
    else if (g[i] == 6 && p[i] == 4)
      ;
    else if (g[i] == 8 && p[i] == 0)
      ;
    else if (g[i] == 0 && p[i] == 8)
      ;
    else if (g[i] == 5 && p[i] == 9)
      ;
    else if (g[i] == 9 && p[i] == 5)
      ;
    else {
      puts("No");
      return 0;
    }
  }
  puts("Yes");
}