import Control.Applicative

main :: IO ()
main = solve <$> f >>= putStrLn
  where
    f = map read <$> words <$> getLine

solve :: [Int] -> String
solve [_, b, c]
  | (b * 10 + c) `mod` 4 == 0 = "YES"
  | otherwise = "NO"
