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()
n = len(s)
if (n % 2) is 0:
    hf = int(n / 2)
else:
    hf = int(n/2)+1
ck = 0

if n is 1:
    if (s is not '3') and (s is not '7'):
        print("No")
        ck = 1
else:
    for i in range(0, hf):
        if (i is hf-1) and (n % 2 is not 0):
            if (s[i] is not '3') and (s[i] is not '7'):
                print("No")
                ck = 1
                break
        elif s[i] == '8' and s[n - 1 - i] == '0':
            continue
        elif s[i] == '0' and s[n - 1 - i] == '8':
            continue
        elif s[i] == '5' and s[n - 1 - i] == '9':
            continue
        elif s[i] == '9' and s[n - 1 - i] == '5':
            continue
        elif s[i] == '4' and s[n - 1 - i] == '6':
            continue
        elif s[i] == '6' and s[n - 1 - i] == '4':
            continue
        elif s[i] == '3' and s[n - 1 - i] == '3':
            continue
        elif s[i] == '7' and s[n - 1 - i] == '7':
            continue
        else:
            print("No")
            ck = 1
            break

if ck is 0:
    print("Yes")