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:
mate = [(3, 3), (4, 6), (7, 7), (0, 8), (5, 9)]
x = raw_input()
n = len(x)
for i in xrange((n + 1) / 2):
    a = ord(x[i]) - ord('0')
    b = ord(x[n - 1 - i]) - ord('0')
    if a > b:
        a, b = b, a
    if not (a, b) in mate:
        print 'No'
        exit(0)
print 'Yes'