S=input() a=int(S[0]) b=int(S[1]) c=int(S[2]) print("Yes" if a+c==b else "No")