module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    ss <- concat . words <$> getLine
    let n = read ss :: Int
    if n `mod` 4 == 0
        then putStrLn "YES"
        else putStrLn "NO"