fun main(args: Array<String>) {
    val (animalCount, legCount) = readLine()?.split(" ")?.map(String::toInt)?: return
    var ans = "No"
    for (a in 0..animalCount) {
        val b = animalCount - a
        if (4 * a + 2 * b == legCount) {
            ans = "Yes"
            break
        }
    }
    println(ans)
}