process.stdin.resume();
process.stdin.setEncoding('utf8');
// Here your code !
process.stdin.on('data', function(chunk){
    var lines = chunk.toString().split(" ");
    var r = parseInt(lines[0]);
    var g = parseInt(lines[1]);
    var b = parseInt(lines[2]);
    
    var N =parseInt(r*100 + g*10 + b);
    var rest = parseInt(N % 4); 
    
//    console.log(rest);
   if(rest = "0"){
        console.log("YES");
    }else{
        console.log("NO");
    
    }
    
});