function main(input) {
    const args = input.split(' ');
  	const joined = args.join();
    const a = parseInt(joined, 10);

    if (a % 4 === 0) {
        console.log('YES');
    } else {
        console.log('NO');
    }
}

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