let () = let n = read_int () in if n mod 4 = 0 && n mod 100 <> 0 && n mod 400 = 0 then print_string "Yes" else print_string "No"