function main(input) {
  input = input.trim();
  const a = input.split(" ").map(Number);
  const str_num = a.join('');
  if(Number(str_num)%4==0){
    console.log("YES");
  }else{
    console.log("NO");
  }
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));