function Main(input) {
    var input = input.split(' ');
    var rgb = parseInt(input[0] + input[1] + input[2], 10);
    if(rgb % 4 === 0) {
        console.log('YES');
    } else{
        console.log('NO');
    }

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