a,b,c=map(int,input().split()) if not (a+b+c)%3: print("Yes") else: print("No")