const input = require("fs").readFileSync("/dev/stdin", "utf8");
// const input = '4 3 2';

function Main(input) {
  const rgb = parseInt(input.split(' ').join(''));
  console.log(rgb % 4 ? 'NO' :'YES');
}

// Don't edit this line!
Main(input);