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:
s=input()
r=s
s=s.replace('6','a')
s=s.replace('4','6')
s=s.replace('a','4')
s=s.replace('5','a')
s=s.replace('9','5')
s=s.replace('a','9')
s=s.replace('8','a')
s=s.replace('0','8')
s=s.replace('a','0')
s=s.replace('1','a')
s=s.replace('2','a')
print("YNeos"[r!=s[::-1]::2])