n = input() print("Yes" if int(n[0]) + int(n[2]) == int(n[1]) else "No")