x, y, z = map(int, input().split()) if (x%3)*(y%3)*(z%3)==0: print("Yes") else: print("No")