"use strict";
const Main = (input) => {
	let xs = input.trim().split(' ');
    let nums =parseInt(xs[0]+xs[1]+xs[2],10);
    let ans ='';
    if(nums % 4 == 0){
    	ans = 'YES';
    }else if(nums % 4 != 0){
    	ans = 'NO';
    }  
    console.log(ans);
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));