fn main() { let bugget: u64 = read(); let child: u64 = read(); let ans = ((bugget/1000) / child) * 1000; println!("{}", ans); } fn read() -> T { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().parse().ok().unwrap() }