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.awt.Point;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
/*

2
0.444444 -

*/
public class d {
	public static void main(String[] args) {
		int[] map = new int[10];
		Arrays.fill(map, -1);
		map[3] = 3;
		map[4] = 6;
		map[5] = 9;
		map[6] = 4;
		map[7] = 7;
		map[8] = 0;
		map[9] = 5;
		map[0] = 8;
		Scanner in = new Scanner(System.in);
		String s = in.next();
		int[] arr = new int[s.length()];
		for(int i=0;i<s.length();i++) {
			arr[i] = s.charAt(i)-'0';
		}
		for(int i=0;i<s.length();i++) {
			int j = s.length()-1-i;
			if(map[arr[i]] != arr[j]) {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
}