fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let n: Vec = s.split_whitespace().flat_map(str::parse).collect(); let d = n[0] - n[1]; let mut a = 0; for i in 1.. { if i * i > d { break; } if d % i == 0 { if i > n[1] { a += 1; } if d / i != i && d / i > n[1] { a += 1; } } } println!("{a}") }