# 中点判定 def main(): P,Q,R = map(int, input().split()) if Q == (P+R)/2: print("Yes") else: print("No") if __name__ == "__main__": main()