
object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val r, g, b = sc.nextInt()

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


    println(ans)

  }
}