x, y, z = n = [int(i) for i in input().split()] print("Yes" if (x * y * z) % 3 == 0 else "No")