let () =
  let (r, g, b) = Scanf.scanf "%d %d %d\n" (fun x y z -> (x, y, z)) in
  let ans = if (r * 100) + (g * 10) + b mod 4 = 0
            then "YES"
            else "NO" in
  Printf.printf "%s\n" ans

