import Control.Applicative
import Data.List
import Data.Char

getInt :: IO Integer
getInt = (\a -> read a :: Integer) <$> getLine

getIntArray :: IO [Integer]
getIntArray = ((map (\a -> read a :: Integer)) . words) <$> getLine

getStrArray :: Integer -> IO [String]
getStrArray 0 = return [] :: IO [String]
getStrArray n = (:) <$> getLine <*> (getStrArray (n - 1))

rmSpace :: String -> String
rmSpace "" = ""
rmSpace (' ':rst) = rmSpace rst
rmSpace (x:rst) = x : (rmSpace rst)

main = do
    n <- ((\a -> read a :: Int) . rmSpace) <$> getLine
    putStrLn $ if 0 == mod n 4 then "YES" else "NO"
