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