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:
a = ["01","10","10","11","11","10","11","11","10","01"]
b = ["11","00","10","00","01","01","10","11","11","10"]
c = raw_input()
st1 = ""
st2 = ""

def ok(st):
    l = len(st)
    for i in range(l):
        if st[i] != st[l - i - 1]: return False
    return True

for i in range(len(c)):
    p = int(c[i])
    st1 += a[p]
    st2 += b[p]

if ok(st1) and ok(st2):
    print "Yes"
else:
    print "No"

def ok(st):
    l = len(st)
    for i in range(l):
        if st[i] != st[l - i - 1]: return False
    return True