let readString() = stdin.ReadLine()
let readStringArray() = stdin.ReadLine().Split(' ');
let readInt() = readString() |> int
let readIntArray() = readStringArray() |> Array.map (fun x -> int x)

let r, g, b = readIntArray() |> fun x -> (x.[0], x.[1], x.[2])
if (r * 100 + g * 10 + b) % 4 = 0 then "YES" else "NO"
|> printfn "%s"