object Main extends App {
	val x = scala.io.StdIn.readLine
	
	val r = x.split(" ")(0).toInt
	val g = x.split(" ")(1).toInt
	val b = x.split(" ")(2).toInt

	val sum = 100*r + 10*g + b

	if(sum%4 == 0){
		println("YES")
	}else{
		println("No")
	}
}