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:
///package CodeForce;

import java.util.*;
import java.io.*;
public class AprailFoolD {

	
	public static void main(String[] ard)  throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		PrintWriter pw=new PrintWriter(System.out);
		int[] mirror={8,-1,-1,3,6,9,4,7,0,5};
		String s=  br.readLine().trim();
		boolean b=true;
		for(int i=0,j=s.length()-1;i<=j;i++,j--)
			if(mirror[s.charAt(i)-'0']!=s.charAt(j)-'0')
			{
				b=false ; break;
			}
		if(b)pw.println("Yes");
		else pw.println("No");
		
	pw.close();
		
	}
	
	
}