function Main(input) {
	const array = input.split(" ");
  	const n = array[0] + array[1] + array[2];
  	console.log( n % 4 === 0 ? "YES" : "NO" );
}
Main(require('fs').readFileSync("/dev/stdin", "utf8"));