object Main extends App {
  val n = io.StdIn.readLine.split(' ').map(_.toInt)
  val x = n(0)
  val y = n(1)
  
  for(i <- 1 to x-1) {
    val j = x - i
    if(i*4 + j*2 == y) {
      println("YES")
      sys.exit
    }
  }
  println("NO")
}