function Main(input) {
  var rgb = input.split(" ").map(card => parseInt(card, 10));
  console.log((rgb[0]*100 + rgb[1]*10 + rgb[2]) % 4 === 0 ? "YES":"NO");
}

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