use proconio::input; fn main() { input! { n: usize, } let ans = if n % 500 > 100 { n / 500 + 1 } else { n / 500 }; println!("{ans}"); }