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