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