function Main(input) {
  const numberStr = input.replace(/ /g, '');
  if(Number(numberStr) % 4 === 0) {
    console.log('YES');
  } else {
    console.log('NO')
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));