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 =r*100 + g*10 + b;
 //   console.log(N);

    var rest = N % 4; 
 

   if(rest == 0){
        console.log("YES");
    }else{
        console.log("NO");
    
    }

});