var main = function main(input) {
  var args = input.split(' ')
  var threedigit = args[0] * 100 + args[1] * 10 + args[2]
  if (threedigit % 4 === 0) console.log('YES')
  else console.log('NO')
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf-8'))
