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()

  println(if ((r * 100 + g * 10 + b) % 4 == 0) "YES" else "NO")
}