'use strict'

const main = input => {
	const args = input.split(' ')
	if (parseInt(args.join(''), 10) % 4 === 0) console.log('YES')
	else console.log('NO')
}

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