function main(input){
  input = input.split(' ');
  var r = parseInt(input[0],10);
  var g = parseInt(input[1],10);
  var b = parseInt(input[2],10);
  var num = (r * 100) + (g * 10) +  b;
  if(num % 4 === 0){
    console.log('YES');
  }else{
    console.log('NO');
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));