use std::io::stdin;
use std::io::Read;
use std::str::FromStr;

pub fn solve() -> i32 {
    let n: i32 = read();
    n - (n / 2)
}

fn read<T: FromStr>() -> T {
    let cin = stdin();
    let cin = cin.lock();
    let token: String = cin
        .bytes()
        .map(|c| c.expect("failed to read char") as char)
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().expect("failed to parse token")
}

fn main() {
	println("{}", solve());
}