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