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:
pair = {
    '0': '8',
    '3': '3',
    '4': '6',
    '5': '9',
    '6': '4',
    '7': '7',
    '8': '0',
    '9': '5'
}
a = raw_input()
mark, l, r = False, 0, len(a) - 1
while l <= r:
    x, y = a[l], a[r]
    if x not in pair or pair[x] != y:
        mark = True
        break
    l += 1
    r -= 1
if mark:
    print 'No'
else:
    print 'Yes'