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

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