function Main(input){
  input = input.split(" ");
  
  var r = input[0];
  var g = input[1];
  var b = input[2];
  var rgb = parseInt(r + g + b);

  if(rgb%4 == 0){
    console.log("YES");
  }else{
    console.log("NO");
  }
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));