function Main(input) {
input = input.split("\n");
aa　= input[0].split(" ");
  
var x = aa[0].split(" ");
var y = aa[1].split(" ");

var tu = ( 4 * x - y ) / ( 4 - 2 )
var z = x - tu
 if  ( tu >= 0 && Number.isInteger ( z ) == true) {
  var result = "YES";
 } else {
  var result = "NO";
 }

console.log(result);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));



