function Main(input) {
  const num = parseInt(input.split(" ").join(""), 10);

  if(num % 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"));
