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