
function Main(input) {
    var R = input[0];
    var G = input[1];
    var B = input[2];

    var num = parseInt((R + G + B), 10);
    console.log(num % 4 === 0 ? 'YES' : 'NO');
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));