use std::io; use std::io::prelude::*; fn main() { let stdin = io::read_to_string(io::stdin()).unwrap(); let mut stdin = stdin.split_whitespace(); let stdout = io::stdout(); let mut stdout = io::BufWriter::new(stdout.lock()); let n: usize = stdin.next().unwrap().parse::().unwrap(); let s = match (n % 400, n % 100, n % 4) { (0, 0, 0) => "Yes", (_, 0, _) => "No", (_, _, 0) => "Yes", _ => "No", }; writeln!(stdout, "{}", s).unwrap(); }