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:
# from functools import reduce
# A = list(input())
# B = list(input())
#
# num_A = reduce(lambda  x, y: x+y, map(int, A))
# num_B = reduce(lambda  x, y: x+y, map(int, B))
#
# if(num_A + (num_A & 1) >= num_B):
#     print "YES"
# else:
#     print "NO"

str = raw_input()
len = len(str);
arr = (1, 2)
flag = int(0)

for i in range(len):
    if str[i] == '1' or str[i] == '2':
        flag = 1
        break
    else:
        if str[i] == '3' and str[len - i - 1] != '3':
            flag = 1
            break
        if str[i] == '4' and str[len - i - 1] != '6':
            flag = 1
            break
        if str[i] == '5' and str[len - i - 1] != '9':
            flag = 1
            break
        if str[i] == '6' and str[len - i - 1] != '4':
            flag = 1
            break
        if str[i] == '7' and str[len - i - 1] != '7':
            flag = 1
            break
        if str[i] == '8' and str[len - i - 1] != '0':
            flag = 1
            break
        if str[i] == '9' and str[len - i - 1] != '5':
            flag = 1
            break
        if str[i] == '0' and str[len - i - 1] != '8':
            flag = 1
            break

if flag is 1:
    print "No"
else:
    print "Yes"