fn main() { let mut n = String::new(); std::io::stdin().read_line(&mut n).ok(); println!("{}", (n.trim().len() + 1) / 2); }