import Data.Time.Calendar.OrdinalDate (isLeapYear) main :: IO () main = do n <- readLn :: IO Integer putStrLn $ if isLeapYear n then "Yes" else "No"