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 f;
bool flag = false;
int main() {
  cin >> f;
  for (int i = 0, j = f.size() - 1; i < f.size(); i++, j--)
    if (f[i] == '8' && f[j] != '0' || f[i] == '5' && f[j] != '9' ||
        f[i] == '7' && f[j] != '7' || f[i] == '3' && f[j] != '3' ||
        f[i] == '1' && f[j] != '2' || f[i] == '4' && f[j] != '6')
      flag = true;
  flag ? cout << "No" << endl : cout << "Yes" << endl;
}