{-# LANGUAGE OverloadedStrings #-}
import Data.List
import qualified Data.ByteString.Char8 as B

main = breads >>= B.putStrLn . solve

solve :: [Int] -> B.ByteString
solve [r, g, b]
    | s `mod` 4 == 0 = "YES"
    | otherwise = "NO"
    where
        s = r * 100 + g * 10 + b

breads :: IO [Int]
breads = unfoldr uff <$> B.getLine
    where
        uff b = check <$> B.readInt b
        check (a, b)
            | B.null b = (a, b)
            | otherwise = (a, B.tail b)
