import java.util.Scanner

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

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