use proconio::input; fn main(){ input!{ n: i64, m: i64, } println!("{}", n/(1000_i64*m)*1000_i64); }