function Main(input) {
  var a = r;
  var b = g;
  var c = b;
  var d = 100*a + 10*b + c
  if (d % 4 === 0) {
    console.log("YES");
  }
} else {
  console.log("No");
}

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