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 n, m, k, x, y, sum, cnt, ans;
bool b[15][15];
int main() {
  b[3][3] = true;
  b[4][6] = b[6][4] = true;
  b[5][9] = b[9][5] = true;
  b[7][7] = true;
  b[8][0] = b[0][8] = true;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (!b[s[i] - '0'][s[s.size() - i - 1] - '0']) return 0 * printf("No\n");
  }
  printf("Yes\n");
  return 0;
}