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

  const sum = 100*nums[0]+ 10*nums[1] + nums[2];

  if (sum % 4 === 0){
    console.log("YES");
  } else {
    console.log("NO");
  }
}
function debug(){
	var input = document.getElementById("input").value;
	Main(input);
}

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