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:
p = input()
l = len(p) - 1
ans = ""
s=["23", "10", "30", "11", "13", "12", "31", "33", "32","21"]
for x in p:
    ans+=s[ord(x) -48]
if ans == ans[::-1]:
    print("Yes")
else:
    print("No")