fun main() {
    val (x, y) = readLine()!!.split(" ").map(String::toInt)
    val a = (4.0 * x - y) / 2
    val b = (-2.0 * x + y) / 2
    if (a * 10 % 10 == 0.0 && b * 10 % 10 == 0.0 && listOf(a, b).all { it >= 0 } && listOf(a, b).any { it >= 0 }) {
        println("Yes")
    } else {
        println("No")
    }
}
