P,Q,R = list(map(int,input().split())) print("Yes" if 2*Q == P+R else "No")