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:
import java.util.*;

public class P784D
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		char[] in = scan.next().toCharArray();
		char[] rev = "8!@3694705".toCharArray();
		for (int i = 0; i < in.length; i++)
		{
			if (in[in.length-1-i] != rev[in[i]-'0'])
			{
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
}