a=int(input())
summer=0
while a>0:
    s=a%10 
    summer=summer+s 
    a=a//10 
summer=str(summer)
t=summer[::-1]
if t==summer:
    print("YES")
else:
    print("NO")

dff4298ae886c8d2b9aa2481a88426201a93399d
<mask token>

<mask token>
while a > 0:
    s = a % 10
    summer = summer + s
    a = a // 10
<mask token>
if t == summer:
    print('YES')
else:
    print('NO')

a = int(input())
summer = 0
while a > 0:
    s = a % 10
    summer = summer + s
    a = a // 10
summer = str(summer)
t = summer[::-1]
if t == summer:
    print('YES')
else:
    print('NO')

a=int(input())
summer=0
while a>0:
    s=a%10 
    summer=summer+s 
    a=a//10 
summer=str(summer)
t=summer[::-1]
if t==summer:
    print("YES")
else:
    print("NO")
