function Main(input) {
  const inputArr = input.split(" ");

  const x = parseInt(inputArr[0], 10);
  const y = parseInt(inputArr[1], 10);

  const t = (y - 2 * x) / 2;
  const c = x - t;

  if (
    Number.isInteger(t) &&
    t >= 0 &&
    Number.isInteger(c) &&
    c >= 0 &&
    t + c !== 0
  ) {
    console.log("Yes");
  } else {
    console.log("No");
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
