function main(input) {
  input=input.trim();
  const r = parseInt(input.split(" ")[0], 10);
  const g = parseInt(input.split(" ")[1], 10);
  const b = parseInt(input.split(" ")[2], 10);
  if((100*r+10*g+b)%4==0){
    console.log("YES");
  }else{
    console.log("No");
  }
}


main(require('fs').readFileSync('/dev/stdin', 'utf8'));
