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

Solution:
n = input()

for i in range(len(n)):
	if (n[i] == '1' or n[i] == '2'):
		print("No")
		exit(0)
	elif ((n[i] == '3' or n[i] == '7') and n[-i - 1] != n[i]):
		print("No")
		exit(0)
	elif (n[i] == '4' and n[-i - 1] != '6'):
		print("No")
		exit(0)
	elif (n[i] == '6' and n[-i - 1] != '4'):
		print("No")
		exit(0)
	elif (n[i] == '5' and n[-i - 1] != '9'):
		print("No")
		exit(0)
	elif (n[i] == '9' and n[-i - 1] != '5'):
		print("No")
		exit(0)
	elif (n[i] == '8' and n[-i - 1] != '0'):
		print("No")
		exit(0)
	elif (n[i] == '0' and n[-i - 1] != '8'):
		print("No")
		exit(0)
	
print("Yes")