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 JAVA):

Solution:
const input = readline();
const lastIndex = input.length - 1;
const halfLength = Math.floor(lastIndex * 0.5);
const flip = [8, NaN, NaN, 3, 6, 9, 4, 7, 0, 5];
print((() => {
  for (var i = 0; i <= halfLength; i++)
    if (flip[input.charCodeAt(i) - 48 /* 0 */] !== input.charCodeAt(lastIndex - i) - 48 /* 0 */) return false;
  return true;
})() ? "Yes" : "No");