function Main(input){
	input = input.split("\n");
	var sum = 0;
	for(var i=0;i<3;i++){
		var mem = input[i].split(" ").map(Number);
		sum += mem[0]+mem[1];
	}
	console.log(sum%2==1?"YES":"NO")
}Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());