open Printf
open Scanf

let r, g, b = scanf "%d %d %d" (fun r g b -> r, g, b)

let v = r * 100 + g * 10 + b

let () =
    if v mod 4 = 0 then
        print_endline "YES"
    else
        print_endline "NO"
