#[allow(unused)] use proconio::{input, marker::Chars}; fn main() { input! { mut w: usize, mut d: usize, } while d > 1 { w -= w / (d * d); d -= 1; } println!("{w}") }