function Main(input) {
	input = input.trim().split("\n").map(function(x) { return x.split(" ")});
	let X = parseInt(input[0][0], 10);
	let Y = parseInt(input[0][1], 10);
	let ans = 'No';
	let tmp = 2*X;
	for (let i = 0; i <= X; i++) {
		if (tmp === Y) ans = 'Yes';
		tmp += 2;
	}
	console.log(ans);

}

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