use proconio::input; fn main() { input! { n: usize, } let ans = if n <= 99 { 0 } else { (n - 99 + 499) / 500 }; println!("{ans}"); }