function main(input) {
  const args = input.split(' ').map((n) => parseInt(n, 10));
  const a = args[0],
        b = args[1],
        c = args[2]
  
  const num = (a * 100) + (b * 10) + c
  
  if (num % 4 === 0) {
  	console.log('Yes');
  } else {
    console.log('No');
  }
  
}

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