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

Solution:
from sys import stdin

st=stdin.readline()

d = {'0':'23', '1':'10', '2':'30', '3':'11', '4':'13', '5':'12', '6':'31', '7':'33', '8':'32', '9':'21', '\n':''}

s=''

for c in st:
	s+=d[c]

n = len(s)

p = True
for i in range(0, n/2):
	if s[i]!=s[n-1-i]:
		p = False
		break

if p:
	print "Yes"
else:
	print "No"