fun ans (i: String, j: String, k: String): String {
  return if ((i + j + k).toInt() % 4 == 0) "YES" else "NO"
}

fun main (args: Array<String>) {
  val col = readLine()!!.split(" ")
  println(ans(col[0], col[1], col[2]))
}
