function Main(inp) {
    var input = inp.split("\n");
    input = input[0].split(' ').map(function (n) { return Number(n);});
    var r = input[0];
    var g = input[1];
    var b = input[2];
    if ((r * 100 + g * 10 + b) % 4 === 0) {
        console.log('YES');
        return;
    }
    console.log('NO');
}

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