import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val r = sc.nextInt
  val g = sc.nextInt
  val b = sc.nextInt

  val res = if((g * 10 + b) % 4 == 0) "YES" else "NO"

  println(res)
}