'use strict'
 
function main(s) {
  let n = s.split('\n')[0].split(' ');
  let target = Number(n[1]+n[2]);
  //console.log(target);
  let ans = target % 4 === 0? 'YES':'NO';
  console.log(ans);
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));