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 mod = 1e9 + 7;
const double eps = 1e-8;
const long long INF = 0x3f3f3f3f;
const long long maxn = 1e5 + 5;
const long long maxm = 1e6 + 5;
long long n, vis[10] = {8, -1, -1, 3, 6, 9, 4, 7, 0, 5};
char s[maxn];
inline long long read();
signed main() {
  scanf("%s", s);
  n = strlen(s);
  for (long long i = 0; i < n; ++i) {
    if (vis[s[i] - '0'] != s[n - i - 1] - '0') {
      puts("NO");
      exit(0);
    }
  }
  puts("YES");
  return 0;
}
inline long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    x = (x << 1) + (x << 3) + (ch ^ 48), ch = getchar();
  return x * f;
}