'use strict'

function main(s) {

  const str = s.split('\n')[0].split(' ').join('');
  const num = Number(str);
  const ans = (num % 4 === 0) ? 'YES' : 'NO';
  console.log(ans);
}

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