n = int(input()) print("Yes" if n//100+n%10==n//10%10 else "No")