fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let n: u32 = s.trim().parse().unwrap(); let mut a = 0; for i in 1..=n { match n % i { _ if i > n / i => break, 0 if i == n / i => a += 1, 0 => a += 2, _ => (), } } print!("{}", a) }