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