object Main {
  val judge = (ret: Boolean, ok: String, ng: String) => if (ret) println(ok) else println(ng)
  val mult4 = (a: Int, b: Int) => if ((a * 10 + b) % 4 == 0) true else false

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val _, g, b = sc.nextInt
    val ret = mult4(g,b)
    judge(ret, "YES", "NO")
  }
}
