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;
const long long INF = 1e9 + 7;
const int N = 1e6 + 10;
int key[] = {8, -1, -1, 3, 6, 9, 4, 7, 0, 5};
int main() {
  string str;
  cin >> str;
  int l = 0, r = str.length() - 1;
  int flag = 1;
  while (l <= r) {
    if (key[str[l] - '0'] != str[r] - '0') flag = 0;
    l++, r--;
  }
  if (flag)
    puts("Yes");
  else
    puts("No");
  return 0;
}