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:
n = raw_input()
s = ""
for i in n:
    if i == '0':
        s += '2'
        s += '6'
    if i == '1':
        s += '4'
        s += '0'
    if i == '2':
        s += '6'
        s += '0'
    if i == '3':
        s += '4'
        s += '4'
    if i == '4':
        s += '4'
        s += '6'
    if i == '5':
        s += '4'
        s += '2'
    if i == '6':
        s += '6'
        s += '4'
    if i == '7':
        s += '6'
        s += '6'
    if i == '8':
        s += '6'
        s += '2'
    if i == '9':
        s += '2'
        s += '4'
l = len(s)
flag = 1
for i in range(l / 2):
    if s[i] != s[l - i - 1]:
        flag = 0
if flag:
    print 'Yes'
else:
    print 'No'