def ng(): print("No") exit() a, b, c = map(int, input().split()) goukei = a + b + c if goukei % 3 != 0: ng() else: print("Yes")