use proconio::input; fn main() { input! { n: u64, } println!("{}", (n as f64).sqrt().ceil() as u64 - 1); }