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:
def solve(s):
    s1 = [' *', '* ', '* ', '**', '**', '* ', '**', '**', '* ', ' *']
    s2 = ['**', '  ', '* ', '  ', ' *', ' *', '* ', '**', '**', '* ']
    x, y = '', ''
    for ch in s:
        x += s1[ord(ch) - ord('0')]
        y += s2[ord(ch) - ord('0')]
    return x == x[::-1] and y == y[::-1]
print('Yes' if solve(input()) else 'No')