object Main extends App{
       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)
        }