use std::io;

fn main() {
    let stdin = io::stdin();
    let mut buf = String::new();
    stdin.read_line(&mut buf).unwrap();
    let n: u32 = buf.trim_end().parse().unwrap();
    println!("{}", (n - 1) / 2 + 1);
}
