function main(input){
    input = input.split(" ");
    temp = parseInt(input[0] + input[1] + input[2], 10);
    if(temp % 4 === 0){
        console.log("YES")
    }else{
        console.log("NO")
    }
}


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